diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-08-14 14:10:36 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-15 12:20:38 +0200 |
commit | 188e5f018f0494267047a6857f8a17d37390dae7 (patch) | |
tree | 6fdfd396d2ef3e9e45c1edfc76cb951d0a6986ad /Userland/Utilities | |
parent | 3870f4160d1fc292e417e91889fcaa46401adebe (diff) | |
download | serenity-188e5f018f0494267047a6857f8a17d37390dae7.zip |
ddate: Use DateTime::now() for time
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/ddate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/ddate.cpp b/Userland/Utilities/ddate.cpp index 8d2ed07653..9e68eb2aa1 100644 --- a/Userland/Utilities/ddate.cpp +++ b/Userland/Utilities/ddate.cpp @@ -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; |