From: Iskren Chernev Date: Mon, 18 Nov 2013 02:27:31 +0000 (+0630) Subject: ZZ formats partial hour zones like 0550 instead of 0530 X-Git-Tag: 2.5.0^2~21^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab904f8afd0898d27e3c67f35bbd89c7e767377d;p=thirdparty%2Fmoment.git ZZ formats partial hour zones like 0550 instead of 0530 --- diff --git a/moment.js b/moment.js index 3d7194001..45cdb409c 100644 --- a/moment.js +++ b/moment.js @@ -236,7 +236,7 @@ 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();