cmp_ok($t->daylight_savings, '==', 0);
# ->tzoffset?
-{
- local $ENV{TZ} = "EST";
+my $is_pseudo_fork = 0;
+if (defined &Win32::GetCurrentProcessId
+ ? $$ != Win32::GetCurrentProcessId() : $^O eq "MSWin32" && $$ < 0) {
+ $is_pseudo_fork = 1;
+}
+SKIP: {
+ skip "can't register TZ changes in a pseudo-fork", 2 if $is_pseudo_fork;
+ local $ENV{TZ} = "EST5";
Time::Piece::_tzset(); # register the environment change
my $lt = localtime;
cmp_ok(scalar($lt->tzoffset), 'eq', '-18000');