From f1f3da5a6d1db2d8521cff8df400a6c31fe2c2a1 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 7 Jul 2017 13:07:21 +0000 Subject: [PATCH] Bug 9031 - Use floating instead of UTC --- Koha/Calendar.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm index 2d87e05..f6a276f 100644 --- a/Koha/Calendar.pm +++ b/Koha/Calendar.pm @@ -327,7 +327,7 @@ sub days_between { # start and end should not be closed days my $days = $start_dt->delta_days($end_dt)->delta_days; - for (my $dt = $start_dt->clone()->set_time_zone('UTC'); + for (my $dt = $start_dt->clone()->set_time_zone('floating'); $dt <= $end_dt; $dt->add(days => 1) ) { @@ -351,7 +351,7 @@ sub hours_between { # take into account open/close times then it would be a duration # of library open hours my $skipped_days = 0; - for (my $dt = $start_dt->clone()->set_time_zone('UTC'); + for (my $dt = $start_dt->clone()->set_time_zone('floating'); $dt <= $end_dt; $dt->add(days => 1) ) { -- 2.1.4