Bugzilla – Attachment 116361 Details for
Bug 24850
Koha::DateUtils ignores offsets in RFC3339 datetimes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24850: (QA follow-up) Add more comments
Bug-24850-QA-follow-up-Add-more-comments.patch (text/plain), 1.13 KB, created by
Marcel de Rooy
on 2021-02-05 08:00:46 UTC
(
hide
)
Description:
Bug 24850: (QA follow-up) Add more comments
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-02-05 08:00:46 UTC
Size:
1.13 KB
patch
obsolete
>From 594775796c8d10416dd6a383fb45dc13e811b583 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 27 Jan 2021 09:18:45 +0000 >Subject: [PATCH] Bug 24850: (QA follow-up) Add more comments >Content-Type: text/plain; charset=utf-8 > >To try and clarify the logic here I've added an addition comment to the >code. > >Signed-off-by: David Cook <dcook@prosentient.com.au> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/DateUtils.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/Koha/DateUtils.pm b/Koha/DateUtils.pm >index 09186242ab..882b770c07 100644 >--- a/Koha/DateUtils.pm >+++ b/Koha/DateUtils.pm >@@ -123,6 +123,9 @@ sub dt_from_string { > /xms; > > # Default to UTC (when 'Z' is passed) for inbound timezone. >+ # The regex above succeeds for both 'z', 'Z' and '+/-' offset. >+ # We set tz as though Z was passed by default and then correct it later if an offset is detected >+ # by the presence fo the <offset> variable. > $tz = DateTime::TimeZone->new( name => 'UTC' ); > } > elsif ( $date_format eq 'iso' or $date_format eq 'sql' ) { >-- >2.11.0
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 24850
:
100585
|
100586
|
100587
|
100592
|
100593
|
100594
|
100595
|
100678
|
100679
|
100680
|
100681
|
100881
|
100901
|
100902
|
100903
|
100904
|
100905
|
101803
|
101804
|
101805
|
101806
|
101807
|
101808
|
101837
|
101838
|
101839
|
101840
|
101841
|
101842
|
101843
|
101844
|
115851
|
115852
|
115853
|
115854
|
115855
|
115856
|
115857
|
116299
|
116300
|
116301
|
116302
|
116303
|
116304
|
116305
|
116355
|
116356
|
116357
|
116358
|
116359
|
116360
|
116361
|
116511
|
126182
|
126183
|
126184
|
126185
|
126186
|
126187
|
126188
|
126189
|
127231
|
127232
|
127235
|
127236
|
127239
|
127240
|
127241
|
127242
|
127243
|
127244