summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/diff.c b/src/diff.c
index fedc7df..0961afb 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -729,6 +729,9 @@ main (int argc, char **argv)
#else
time_format = "%Y-%m-%d %H:%M:%S %z";
#endif
+#if !HAVE_TM_GMTOFF
+ localtz = tzalloc (getenv ("TZ"));
+#endif
}
else
{