summaryrefslogtreecommitdiff
path: root/Userland/Utilities/timezone.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-24 19:55:19 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-25 18:39:36 +0000
commita027ccad75193b27db07390045d784e40019ea01 (patch)
tree0b70bebd729f6960d70ca9ac3fb1cdacd1d98dd2 /Userland/Utilities/timezone.cpp
parentede5c9548e55d8216dba21ed431b9e53d085a248 (diff)
downloadserenity-a027ccad75193b27db07390045d784e40019ea01.zip
LibTimeZone+Userland: Rename current_time_zone to system_time_zone
This renames the current implementation of current_time_zone to system_time_zone to more clearly indicate what it is. Then reimplements current_time_zone to return whatever was set up by tzset, falling back to UTC if something went awry, for convenience.
Diffstat (limited to 'Userland/Utilities/timezone.cpp')
-rw-r--r--Userland/Utilities/timezone.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/timezone.cpp b/Userland/Utilities/timezone.cpp
index 641d8ef548..2d4cdaf8f7 100644
--- a/Userland/Utilities/timezone.cpp
+++ b/Userland/Utilities/timezone.cpp
@@ -32,7 +32,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
}
if (time_zone.is_empty()) {
- outln("{}", TimeZone::current_time_zone());
+ outln("{}", TimeZone::system_time_zone());
return 0;
}