From 413c26dd71ab6f902eef754a0dbe0faee56f6c61 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 26 Sep 2013 16:25:01 +0200 Subject: [PATCH] More aggressively set timezone for regression testing. --- testing/dav_test | 1 + testing/run_regressions.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/testing/dav_test b/testing/dav_test index 1eadae84..c1e3d1e1 100755 --- a/testing/dav_test +++ b/testing/dav_test @@ -330,6 +330,7 @@ with DBD::Pg. sub opendb { $dsn = "dbi:Pg:dbname=$dsn"; $dbh = DBI->connect($dsn, $dbuser, $dbpass, { AutoCommit => 1 } ) or die "Can't connect to database $dsn"; + $dbh->do("SET TIMEZONE TO 'Pacific/Auckland'"); } diff --git a/testing/run_regressions.sh b/testing/run_regressions.sh index 4da6949a..59fe9b4f 100755 --- a/testing/run_regressions.sh +++ b/testing/run_regressions.sh @@ -8,6 +8,7 @@ HOSTNAME=regression # We need to run the regression tests in the timezone they were written for. export PGTZ=Pacific/Auckland +export TZ=Pacific/Auckland ALLSUITES="regression-suite binding carddav scheduling timezone"