summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Allbery <rra@cpan.org>2021-12-26 21:11:50 -0800
committerRuss Allbery <rra@cpan.org>2021-12-26 21:11:50 -0800
commit3a32578ab06e1ab63f7ebcf93818c3758f0b3527 (patch)
tree4e1461952f558067e7724916c5b5d2277d4d1b4c
parent3a81ce26dbeae0ccf77a521866fbd5c3386ef3e9 (diff)
Use POSIX TZ format for tests
One of the tests depends on time zone conversions, and it failed in tests from one of the CPAN testers. In the hope that this is due to a missing tzinfo database, set TZ to a full POSIX time zone string instead.
-rwxr-xr-xt/spin/versions.t6
1 files changed, 4 insertions, 2 deletions
diff --git a/t/spin/versions.t b/t/spin/versions.t
index 640e143..7f1e62b 100755
--- a/t/spin/versions.t
+++ b/t/spin/versions.t
@@ -19,8 +19,10 @@ use Test::More tests => 20;
require_ok('App::DocKnot::Spin::Versions');
-# All dates in the sample data are in America/Los_Angeles.
-local $ENV{TZ} = 'America/Los_Angeles';
+# All dates in the sample data are in America/Los_Angeles. Specify this in
+# the POSIX format in the hope this will also work on systems without tzinfo
+# installed.
+local $ENV{TZ} = 'PST8PDT,M3.2.0,M11.1.0';
tzset();
# Parse the file.