From: Jason Stephenson Date: Fri, 22 Apr 2016 03:00:09 +0000 (-0400) Subject: LP#1573364: Use a timezone in the future backdate checkin test. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9d99d22ecce50461a81a1249d1f35529b9a910af;p=evergreen%2Ftadl.git LP#1573364: Use a timezone in the future backdate checkin test. Signed-off-by: Jason Stephenson Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/perlmods/live_t/10-lp1481036-future-backdate.t b/Open-ILS/src/perlmods/live_t/10-lp1481036-future-backdate.t index a2490939c6..1d7ae08671 100644 --- a/Open-ILS/src/perlmods/live_t/10-lp1481036-future-backdate.t +++ b/Open-ILS/src/perlmods/live_t/10-lp1481036-future-backdate.t @@ -27,7 +27,7 @@ my $checkin_resp = $script->do_checkin({ is(ref $checkin_resp,'HASH','Checkin request returned a HASH'); -my $ymd = DateTime->now->strftime('%F'); +my $ymd = DateTime->now->set_time_zone(DateTime::TimeZone->new( name => "local" ))->strftime('%F'); ok( substr($checkin_resp->{payload}->{circ}->checkin_time, 0, 10) eq $ymd,