mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Changed dates for epoch conversion due to TZ variations
This commit is contained in:
parent
aae4cbac8b
commit
93a68361a7
1 changed files with 2 additions and 2 deletions
|
@ -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)");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue