]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Use round() instead of parseInt() to be consistent. 213/head
authorVincent Roy <vincentroy8@gmail.com>
Wed, 21 Mar 2012 11:55:11 +0000 (17:25 +0530)
committerVincent Roy <vincentroy8@gmail.com>
Wed, 21 Mar 2012 11:55:11 +0000 (17:25 +0530)
moment.js

index 88da48220657d716bb0d42c906dc7e654eb685c2..637b96638f1a636f247ff90c469704458eeeba0c 100644 (file)
--- a/moment.js
+++ b/moment.js
         },
 
         unixValueOf : function () {
-            return parseInt(this.valueOf() / 1000, 10);
+            return round(this.valueOf() / 1000);
         },
 
         local : function () {