View | Details | Raw Unified | Return to bug 30196
Collapse All | Expand All

(-)a/Koha/DateUtils.pm (-2 / +1 lines)
Lines 58-64 to the system preferences. If the date string is empty DateTime->now is returned Link Here
58
sub dt_from_string {
58
sub dt_from_string {
59
    my ( $date_string, $date_format, $tz ) = @_;
59
    my ( $date_string, $date_format, $tz ) = @_;
60
60
61
    return if $date_string and $date_string =~ m|^0000-0|;
61
    return undef if $date_string and $date_string =~ m|^0000-0|;
62
62
63
    my $do_fallback = defined($date_format) ? 0 : 1;
63
    my $do_fallback = defined($date_format) ? 0 : 1;
64
    my $server_tz = C4::Context->tz;
64
    my $server_tz = C4::Context->tz;
65
- 

Return to bug 30196