]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
ZZ formats partial hour zones like 0550 instead of 0530
authorIskren Chernev <iskren.chernev@gmail.com>
Mon, 18 Nov 2013 02:27:31 +0000 (08:57 +0630)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 18 Nov 2013 02:27:31 +0000 (08:57 +0630)
moment.js

index 3d7194001aa3869782ef47b87fce189ee705661d..45cdb409c91462a5a6d294a8f793d95a7b6484bd 100644 (file)
--- a/moment.js
+++ b/moment.js
                     a = -a;
                     b = "-";
                 }
-                return b + leftZeroFill(toInt(10 * a / 6), 4);
+                return b + leftZeroFill(toInt(a / 60), 2) + leftZeroFill(toInt(a) % 60, 2);
             },
             z : function () {
                 return this.zoneAbbr();