From b8fb2d2e7060e6966e89355661067b7b81df02f6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 3 Nov 2021 10:06:35 +0100 Subject: [PATCH] Bug 24850: Date only are not RFC3339 We removed the fallback on 'Bug 24850: Don't fallback when date_format is passed', and the dates passed for date only (YYYY-MM-DD) are not RFC3339 formatted but ISO8601. We must assume that all dates will be YYYY-MM-DD, without fallback. --- Koha/Object.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Object.pm b/Koha/Object.pm index 5d0f3f720ff..ec1316c45d7 100644 --- a/Koha/Object.pm +++ b/Koha/Object.pm @@ -751,7 +751,7 @@ sub attributes_from_api { elsif ( _date_or_datetime_column_type( $columns_info->{$koha_field_name}->{data_type} ) ) { try { if ( $columns_info->{$koha_field_name}->{data_type} eq 'date' ) { - $value = $dtf->format_date(dt_from_string($value, 'rfc3339')) + $value = $dtf->format_date(dt_from_string($value)) if defined $value; } else { -- 2.25.1