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

(-)a/Koha/DateUtils.pm (-3 / +2 lines)
Lines 68-75 sub dt_from_string { Link Here
68
68
69
    $date_format = C4::Context->preference('dateformat') unless $date_format;
69
    $date_format = C4::Context->preference('dateformat') unless $date_format;
70
70
71
    if ( ref($date_string) eq 'DateTime' ) {    # already a dt return it
71
    if ( ref($date_string) eq 'DateTime' ) {    # already a dt return a clone
72
        return $date_string;
72
        return $date_string->clone();
73
    }
73
    }
74
74
75
    my $regex;
75
    my $regex;
76
- 

Return to bug 33611