From 9d99d22ecce50461a81a1249d1f35529b9a910af Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Thu, 21 Apr 2016 23:00:09 -0400 Subject: [PATCH] LP#1573364: Use a timezone in the future backdate checkin test. Signed-off-by: Jason Stephenson Signed-off-by: Ben Shum --- Open-ILS/src/perlmods/live_t/10-lp1481036-future-backdate.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.11.0