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

(-)a/Koha/DateUtils.pm (-2 / +1 lines)
Lines 218-224 sub output_pref { Link Here
218
    }
218
    }
219
219
220
    return if !defined $dt; # NULL date
220
    return if !defined $dt; # NULL date
221
    Koha::Exceptions::WrongParameter->throw( 'dt is not a datetime' )  if ref($dt) ne 'DateTime';
221
    Koha::Exceptions::WrongParameter->throw( "output_pref is called with '$dt' (ref ". ( ref($dt) ? ref($dt):'SCALAR')."), not a DateTime object")  if ref($dt) ne 'DateTime';
222
222
223
    # FIXME: see bug 13242 => no TZ for dates 'infinite'
223
    # FIXME: see bug 13242 => no TZ for dates 'infinite'
224
    if ( $dt->ymd !~ /^9999/ ) {
224
    if ( $dt->ymd !~ /^9999/ ) {
225
- 

Return to bug 17502