From: Vincent Roy Date: Wed, 21 Mar 2012 11:55:11 +0000 (+0530) Subject: Use round() instead of parseInt() to be consistent. X-Git-Tag: 1.5.1~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F213%2Fhead;p=thirdparty%2Fmoment.git Use round() instead of parseInt() to be consistent. --- diff --git a/moment.js b/moment.js index 88da48220..637b96638 100644 --- a/moment.js +++ b/moment.js @@ -600,7 +600,7 @@ }, unixValueOf : function () { - return parseInt(this.valueOf() / 1000, 10); + return round(this.valueOf() / 1000); }, local : function () {