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

(-)a/Koha/DateUtils.pm (-3 / +7 lines)
Lines 254-261 sub output_pref { Link Here
254
          : $dt->strftime("%Y-%m-%d $time");
254
          : $dt->strftime("%Y-%m-%d $time");
255
    }
255
    }
256
    elsif ( $pref =~ m/^rfc3339/ ) {
256
    elsif ( $pref =~ m/^rfc3339/ ) {
257
        $date = $dt->strftime('%FT%T%z');
257
        if (!$dateonly) {
258
        substr($date, -2, 0, ':'); # timezone "HHmm" => "HH:mm"
258
            $date = $dt->strftime('%FT%T%z');
259
            substr($date, -2, 0, ':'); # timezone "HHmm" => "HH:mm"
260
        }
261
        else {
262
            $date = $dt->strftime("%Y-%m-%d");
263
        }
259
    }
264
    }
260
    elsif ( $pref =~ m/^metric/ ) {
265
    elsif ( $pref =~ m/^metric/ ) {
261
        $date = $dateonly
266
        $date = $dateonly
262
- 

Return to bug 19816