Skip to content

Commit

Permalink
adjust unit test so it succeeds in spite of potential bug in Time::Piece
Browse files Browse the repository at this point in the history
  • Loading branch information
barefootcoder committed Apr 17, 2016
1 parent e60ca32 commit 275d207
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xt/release/timezones.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ foreach (`find $zoneinfo -type f`)
chomp;
s{^$zoneinfo/}{};
$ENV{TZ} = $_;
is date("04/95 00:22:12 PDT")->strftime('%Y-%m-%d'), '1995-04-01', "simple parse in timezone: $_";

my $td = date("04/95 00:22:12 PDT");
is join('-', $td->year, $td->mon, $td->mday), '1995-4-1', "simple parse in timezone: $_";
}


Expand Down

0 comments on commit 275d207

Please sign in to comment.