Bugzilla – Attachment 71469 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.04 KB, created by
Julian Maurice
on 2018-02-12 13:50:24 UTC
(
hide
)
Description:
Bug 20178: [sql_modes] Fix output_pref with dateformat=iso
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-02-12 13:50:24 UTC
Size:
1.04 KB
patch
obsolete
>From a0124d97324020e0acb1a1e7c5f43389e53bb25c 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> >--- > Koha/DateUtils.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/DateUtils.pm b/Koha/DateUtils.pm >index 2b8ee8b5a2..b67120b471 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.14.2
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