Skip to content

Commit 2cc2507

Browse files
committed
trial2
1 parent 2036d41 commit 2cc2507

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/POSIX/t/time.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ SKIP: { # GH #23878: test that dst spring forward works properly; use a
272272
$ENV{TZ} = $locale;
273273
POSIX::tzset();
274274
my $t = 1741510800; # an hour before time should have changed
275+
my $offset = POSIX::strftime("%z", localtime $t);
276+
my $zone_name = POSIX::strftime("%Z", localtime $t);
277+
skip "Platform doesn't recognize timezone '$locale'"
278+
if $zone_name !~ /P[SD]T/ || $offset !~ /0[87]00/;
275279

276280
my @spring = (
277281
[ -1, "2025-03-09 00:59:59-0800", "Chg -1 hr, 1 sec" ],

0 commit comments

Comments
 (0)