Bugzilla – Attachment 171401 Details for
Bug 37831
[OMNIBUS] Timezone ignored when passing rfc3339 formatted date
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37831: Adjust timezone
Bug-37831-Adjust-timezone.patch (text/plain), 1.37 KB, created by
Jonathan Druart
on 2024-09-12 14:24:22 UTC
(
hide
)
Description:
Bug 37831: Adjust timezone
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-09-12 14:24:22 UTC
Size:
1.37 KB
patch
obsolete
>From b56a86f31e10dbcb7f7f42c57390d38cfdfcb6e8 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 37831: 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. >--- > Koha/Object.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/Koha/Object.pm b/Koha/Object.pm >index 54163dd9b54..f6d5b32b9b4 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 { >@@ -874,6 +875,7 @@ sub attributes_from_api { > my ( $self, $from_api_params ) = @_; > > my $from_api_mapping = $self->from_api_mapping; >+ use Data::Printer colored => 1; warn p $from_api_params; > > my $params; > my $columns_info = $self->_result->result_source->columns_info; >@@ -898,6 +900,7 @@ sub attributes_from_api { > } > } > >+ use Data::Printer colored => 1; warn p $params; > return $params; > } > >-- >2.34.1
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 37831
:
171401