ddate: Use DateTime::now() for time

This commit is contained in:
Brian Gianforcaro 2021-08-14 14:10:36 -07:00 committed by Andreas Kling
parent 3870f4160d
commit 188e5f018f
Notes: sideshowbarker 2024-07-18 05:41:20 +09:00

View file

@ -106,7 +106,7 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char** argv)
return 1; return 1;
} }
auto date = Core::DateTime::from_timestamp(time(nullptr)); auto date = Core::DateTime::now();
outln("Today is {}", DiscordianDate(date).to_string()); outln("Today is {}", DiscordianDate(date).to_string());
return 0; return 0;