Bugzilla – Attachment 98825 Details for
Bug 24643
Koha::DateUtils::dt_from_string rfc3339 cannot handle high precision seconds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24643: Support fractional seconds
Bug-24643-Support-fractional-seconds.patch (text/plain), 1.05 KB, created by
Jonathan Druart
on 2020-02-13 13:25:44 UTC
(
hide
)
Description:
Bug 24643: Support fractional seconds
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-02-13 13:25:44 UTC
Size:
1.05 KB
patch
obsolete
>From 938f90e6c783ad864344162d2e5c493777dbf57c Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Wed, 12 Feb 2020 16:04:07 +0000 >Subject: [PATCH] Bug 24643: Support fractional seconds > >This patch allows dt_from_string to handle RFC3339 strings containing >fractional seconds up to one thousandth of a second. > >Test plan: > >- Apply patch >- prove t/DateUtils.t > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/DateUtils.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/DateUtils.pm b/Koha/DateUtils.pm >index 459a5a89d7..ef89e306cb 100644 >--- a/Koha/DateUtils.pm >+++ b/Koha/DateUtils.pm >@@ -117,7 +117,7 @@ sub dt_from_string { > (?<minute>\d{2}) > : > (?<second>\d{2}) >- (([Zz])|([\+|\-]([01][0-9]|2[0-3]):[0-5][0-9])) >+ (\.\d{1,3})?(([Zz])|([\+|\-]([01][0-9]|2[0-3]):[0-5][0-9])) > /xms; > } > 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 24643
:
98762
|
98763
|
98764
|
98780
|
98781
| 98825 |
98826
|
98827