Skip to content

Commit b7e8df6

Browse files
authored
Merge pull request #82 from Dual-Life/feature/gh81
Start from a known TZ before converting from GMT
2 parents cc02be6 + b31acee commit b7e8df6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/11strptime_defaults.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ my $is_linux = ( $^O =~ /linux/ );
55

66
BEGIN { use_ok('Time::Piece'); }
77

8+
# Start with a known TZ
9+
$ENV{TZ} = "EST5EDT4,M3.2.0/2,M11.1.0/2";
10+
Time::Piece::_tzset();
11+
812
# Using known epoch 1753440879 = Friday, July 25, 2025 10:54:39 AM GMT
913
my @known_gmtime = gmtime(1753440879); # (39, 54, 10, 25, 6, 125, 5, 206, 0)
1014
my @known_localtime = localtime(1753440879);

0 commit comments

Comments
 (0)