@@ -, +, @@ - Apply the regression tests patch - Run: k$ prove t/DateUtils.t - Apply this patch - Run: k$ prove t/DateUtils.t - Sign off :-D --- Koha/DateUtils.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- a/Koha/DateUtils.pm +++ a/Koha/DateUtils.pm @@ -254,8 +254,13 @@ sub output_pref { : $dt->strftime("%Y-%m-%d $time"); } elsif ( $pref =~ m/^rfc3339/ ) { - $date = $dt->strftime('%FT%T%z'); - substr($date, -2, 0, ':'); # timezone "HHmm" => "HH:mm" + if (!$dateonly) { + $date = $dt->strftime('%FT%T%z'); + substr($date, -2, 0, ':'); # timezone "HHmm" => "HH:mm" + } + else { + $date = $dt->strftime("%Y-%m-%d"); + } } elsif ( $pref =~ m/^metric/ ) { $date = $dateonly --