1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:47:34 +00:00

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

View file

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