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

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

Return to bug 30196