aboutsummaryrefslogtreecommitdiffstats
path: root/common/t-timestuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/t-timestuff.c')
-rw-r--r--common/t-timestuff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/t-timestuff.c b/common/t-timestuff.c
index f39e3089d..8059a875a 100644
--- a/common/t-timestuff.c
+++ b/common/t-timestuff.c
@@ -158,7 +158,11 @@ main (int argc, char **argv)
UTC in this case so that the 20380118T235959 test does not fail
for other timezones. */
#ifndef HAVE_TIMEGM
+# ifdef HAVE_SETENV
setenv ("TZ", "UTC", 1);
+#else
+ putenv (xstrdup ("TZ=UTC"));
+#endif
tzset ();
#endif