From a0124d97324020e0acb1a1e7c5f43389e53bb25c Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 --- 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