Bugzilla – Attachment 171765 Details for
Bug 37902
Timezone ignored when passing rfc3339 formatted date (search 'q')
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37902: Adjust timezone
Bug-37902-Adjust-timezone.patch (text/plain), 1014 bytes, created by
Nick Clemens (kidclamp)
on 2024-09-19 13:45:15 UTC
(
hide
)
Description:
Bug 37902: Adjust timezone
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-09-19 13:45:15 UTC
Size:
1014 bytes
patch
obsolete
>From dc2e57216d1883c37eeb38b2cb7105c6e9b28000 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <nick@bywatersolutions.com> >--- > Koha/Object.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/Object.pm b/Koha/Object.pm >index 54163dd9b54..63efcdd68fa 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37902
:
171389
|
171390
|
171391
|
171392
|
171402
|
171403
|
171515
|
171551
|
171652
|
171762
|
171763
|
171764
|
171765
|
171766
|
171767
|
171768
|
172105
|
172106
|
172107
|
172108
|
172109
|
172110
|
172111
|
172112