Changed dates for epoch conversion due to TZ variations

This commit is contained in:
Federico Hernandez 2009-06-20 23:03:06 +02:00
parent aae4cbac8b
commit 93a68361a7

View file

@ -138,8 +138,8 @@ int main (int argc, char** argv)
Date epoch (9, 8, 2001);
t.ok ((int)epoch.toEpoch () < 1000000000, "9/8/2001 < 1,000,000,000");
epoch += 86400;
t.ok ((int)epoch.toEpoch () > 1000000000, "9/9/2001 > 1,000,000,000");
epoch += 172800;
t.ok ((int)epoch.toEpoch () > 1000000000, "9/10/2001 > 1,000,000,000");
Date fromEpoch (epoch.toEpoch ());
t.is (fromEpoch.toString (), epoch.toString (), "ctor (time_t)");