selftest: force running with TZ=UTC
authorStefan Metzmacher <metze@samba.org>
Wed, 27 Feb 2019 07:22:09 +0000 (08:22 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 28 Mar 2019 12:19:12 +0000 (12:19 +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

(cherry picked from commit 4f307f2302b0fe8fd0fc6379eb8e6491faf8520c)

selftest/selftest.pl

index 0e56e6a13ef13a318c43cec2f0f0653e443fdd0b..e35e67798ed33d0addaf81d76a41739bf461cb29 100755 (executable)
@@ -286,6 +286,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: