]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Use February for isSame tests, so new-year has happened in all timezones 1371/head
authorIskren Chernev <iskren.chernev@gmail.com>
Mon, 23 Dec 2013 11:06:33 +0000 (11:06 +0000)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 23 Dec 2013 11:06:33 +0000 (11:06 +0000)
test/moment/is_same.js

index 71fc25bb91f84de16886176ea16513cd11e2bebe..96113827916d9807154a836f23bc6efb8cb3f933 100644 (file)
@@ -163,9 +163,9 @@ exports.is_same = {
 
     "is same with zone'd moments" : function (test) {
         test.expect(3);
-        test.ok(moment.parseZone('2013-01-01T-05:00').isSame(moment('2013-01-01'), 'year'), "zoned vs local moment");
-        test.ok(moment('2013-01-01').isSame(moment('2013-01-01').zone('-05:00'), 'year'), "local vs zoned moment");
-        test.ok(moment.parseZone('2013-01-01T-05:00').isSame(moment.parseZone('2013-01-01T-06:30'), 'year'),
+        test.ok(moment.parseZone('2013-02-01T-05:00').isSame(moment('2013-02-01'), 'year'), "zoned vs local moment");
+        test.ok(moment('2013-02-01').isSame(moment('2013-02-01').zone('-05:00'), 'year'), "local vs zoned moment");
+        test.ok(moment.parseZone('2013-02-01T-05:00').isSame(moment.parseZone('2013-02-01T-06:30'), 'year'),
                 "zoned vs (differently) zoned moment");
         test.done();
     }