Bugzilla – Attachment 71593 Details for
Bug 20178
Fix output_pref with dateformat=iso
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20178: [sql_modes] Fix output_pref with dateformat=iso
Bug-20178-sqlmodes-Fix-outputpref-with-dateformati.patch (text/plain), 1.08 KB, created by
Mark Tompsett
on 2018-02-14 03:46:31 UTC
(
hide
)
Description:
Bug 20178: [sql_modes] Fix output_pref with dateformat=iso
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-02-14 03:46:31 UTC
Size:
1.08 KB
patch
obsolete
>From c7a5dc56027ab0a03cf0c097a0f7f6d784973da4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 5 Feb 2018 18:33:25 -0300 >Subject: [PATCH] Bug 20178: [sql_modes] Fix output_pref with dateformat=iso > >Fix for: >Incorrect date value: '2018-02-05 06:30 PM' for column 'entrydate' > >TODO - check other occurrences, put to a separate bug report >Then `git grep output_pref|grep iso` and make sure no other calls are >impacted. > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > Koha/DateUtils.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/DateUtils.pm b/Koha/DateUtils.pm >index 2b8ee8b..b67120b 100644 >--- a/Koha/DateUtils.pm >+++ b/Koha/DateUtils.pm >@@ -251,7 +251,7 @@ sub output_pref { > if ( $pref =~ m/^iso/ ) { > $date = $dateonly > ? $dt->strftime("%Y-%m-%d") >- : $dt->strftime("%Y-%m-%d $time"); >+ : $dt->strftime("%Y-%m-%d %H:%M"); > } > elsif ( $pref =~ m/^rfc3339/ ) { > $date = $dt->strftime('%FT%T%z'); >-- >2.1.4
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 20178
:
71469
|
71498
|
71593
|
71594