@@ -, +, @@ --- Koha/DateUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/DateUtils.pm +++ a/Koha/DateUtils.pm @@ -53,7 +53,7 @@ to the system preferences. If the date string is empty DateTime->now is returned sub dt_from_string { my ( $date_string, $date_format, $tz ) = @_; - return if $date_string and $date_string =~ m|^0000-0|; + return undef if $date_string and $date_string =~ m|^0000-0|; $tz = C4::Context->tz unless $tz;; --