From e79c47c129b1c710a9057c6b88aca44eb3706ec2 Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Tue, 29 Apr 2014 21:08:32 +0800 Subject: [PATCH] fix some tests that relied on the local tz (thanks Hong Kong) --- tests/automated/moment-ambig.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/automated/moment-ambig.js b/tests/automated/moment-ambig.js index 00f05f8..268ffd5 100644 --- a/tests/automated/moment-ambig.js +++ b/tests/automated/moment-ambig.js @@ -285,7 +285,7 @@ describe('ambiguously-timed moment', function() { describe('unambiguous moment', function() { it('can be made ambiguously-zoned via stripZone', function() { - var mom = $.fullCalendar.moment('2014-06-08T10:00:00-0700'); + var mom = $.fullCalendar.moment.utc('2014-06-08T10:00:00-0000'); expect(mom.hasZone()).toBe(true); expect(mom.hasTime()).toBe(true); mom.stripZone(); @@ -295,7 +295,7 @@ describe('unambiguous moment', function() { }); it('can be made ambigously-timed via stripTime', function() { - var mom = $.fullCalendar.moment('2014-06-08T10:00:00-0700'); + var mom = $.fullCalendar.moment.utc('2014-06-08T10:00:00-0000'); expect(mom.hasTime()).toBe(true); expect(mom.hasZone()).toBe(true); mom.stripTime();