diff options
-rw-r--r-- | src/time/__tz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/__tz.c b/src/time/__tz.c index a76a7b48..36b59802 100644 --- a/src/time/__tz.c +++ b/src/time/__tz.c @@ -127,7 +127,7 @@ static void do_tzset() "/usr/share/zoneinfo/\0/share/zoneinfo/\0/etc/zoneinfo/\0"; s = getenv("TZ"); - if (!s) s = ""; + if (!s || !*s) s = "GMT0"; if (old_tz && !strcmp(s, old_tz)) return; |