shouldBe("day_after_tomorrow.earlierThan(tomorrow_plus_one_day)", "false");
shouldBe("day_after_tomorrow.laterThan(tomorrow_plus_one_day)", "false");
-shouldBe("tomorrow.laterThan(now)", "false");
-shouldBe("tomorrow.earlierThan(now)", "true");
+shouldBe("tomorrow.laterThan(now)", "true");
+shouldBe("tomorrow.earlierThan(now)", "false");
shouldBe("tomorrow.equalsTo(now)", "false");
shouldBe("yesterday.equalsTo(now)", "false");
},
addDuration: function(duration) {
var date = new TZDate(date_.getFullYear(), date_.getMonth(),
- date_.getDay(), date_.getHours(), date_.getMinutes(),
+ date_.getDate(), date_.getHours(), date_.getMinutes(),
date_.getSeconds(), date_.getMilliseconds(), timezone_);
date.setMilliseconds(duration.getMilliseconds() +
date.getMilliseconds());