From b63b8e19b3ada47bf00e0ae71ccbaa0751812732 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 12 Sep 2024 16:06:36 +0200 Subject: [PATCH] Bug 37902: Adjust timezone We didn't take into account the server's timezone. This does not feel right, we are not supposed to deal with time zone outside of Koha::DateUtils. Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer --- Koha/Object.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Object.pm b/Koha/Object.pm index 54163dd9b5..63efcdd68f 100644 --- a/Koha/Object.pm +++ b/Koha/Object.pm @@ -859,6 +859,7 @@ sub _recursive_fixup { $value = $dtf->format_date($dt); } else { my $dt = Koha::DateTime::Format::RFC3339->parse_datetime($value); + $dt->set_time_zone(C4::Context->tz); $value = $dtf->format_datetime($dt); } } catch { -- 2.39.5