summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r--Userland/Libraries/LibC/time.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/Userland/Libraries/LibC/time.cpp b/Userland/Libraries/LibC/time.cpp
index a1591c8051..2c93bcbe3d 100644
--- a/Userland/Libraries/LibC/time.cpp
+++ b/Userland/Libraries/LibC/time.cpp
@@ -397,12 +397,7 @@ size_t strftime(char* destination, size_t max_size, char const* format, const st
void tzset()
{
- // FIXME: Actually parse the TZ environment variable, described here:
- // https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08
- if (char* tz = getenv("TZ"); tz != nullptr)
- __tzname = { tz, strlen(tz) };
- else
- __tzname = TimeZone::system_time_zone();
+ __tzname = TimeZone::current_time_zone();
auto set_default_values = []() {
timezone = 0;