selftest: force running with TZ=UTC
authorStefan Metzmacher <metze@samba.org>
Wed, 27 Feb 2019 07:22:09 +0000 (08:22 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Feb 2019 11:24:59 +0000 (11:24 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Feb 27 11:24:59 UTC 2019 on sn-devel-144

selftest/selftest.pl

index ec44b89dac7a7895f074944c5e538ac49bf4dfbd..f04e2b2ce2d6b6b5d154a8ccdbfd037f58446bf4 100755 (executable)
@@ -301,6 +301,9 @@ unless (defined($ENV{VALGRIND})) {
 # make all our python scripts unbuffered
 $ENV{PYTHONUNBUFFERED} = 1;
 
+# do not depend on the users setup
+$ENV{TZ} = "UTC";
+
 my $bindir_abs = abs_path($bindir);
 
 # Backwards compatibility: