From: Iskren Chernev Date: Mon, 23 Dec 2013 11:06:33 +0000 (+0000) Subject: Use February for isSame tests, so new-year has happened in all timezones X-Git-Tag: 2.5.0^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8a93ec42dfc1442bf5a791bf5ccb1a49dd3f37b;p=thirdparty%2Fmoment.git Use February for isSame tests, so new-year has happened in all timezones --- diff --git a/test/moment/is_same.js b/test/moment/is_same.js index 71fc25bb9..961138279 100644 --- a/test/moment/is_same.js +++ b/test/moment/is_same.js @@ -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(); }