Fallback to reading /etc/timezone by calling system_time_zone() when unable determine time zone from /etc/localtime. This works on systems where /etc/localtime is a file and not a symlink. Fixes #65
@@ -129,7 +129,8 @@ StringView current_time_zone()
dbgln_if(TIME_ZONE_DEBUG, "Could not read the /etc/localtime link: {}", strerror(errno));
}
- return "UTC"sv;
+ // Read the system timezone file /etc/timezone
+ return system_time_zone();
#endif