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

(-)a/t/DateUtils.t (-2 / +1 lines)
Lines 44-50 $date_string = output_pref({ dt => $dt, dateformat => 'iso', timeformat => '24hr Link Here
44
cmp_ok $date_string, 'eq', '2011-06-16 12:00', 'iso output';
44
cmp_ok $date_string, 'eq', '2011-06-16 12:00', 'iso output';
45
45
46
$date_string = output_pref({ dt => $dt, dateformat => 'iso', timeformat => '12hr' });
46
$date_string = output_pref({ dt => $dt, dateformat => 'iso', timeformat => '12hr' });
47
cmp_ok $date_string, 'eq', '2011-06-16 12:00 PM', 'iso output 12hr';
47
cmp_ok $date_string, 'eq', '2011-06-16 12:00', 'iso output timeformat is not taken into account for iso format';
48
48
49
$date_string = output_pref({ dt => $dt, dateformat => 'rfc3339' });
49
$date_string = output_pref({ dt => $dt, dateformat => 'rfc3339' });
50
like($date_string, qr/2011-06-16T12:00:00\+|-\d\d:\d\d/, 'RFC3339 output');
50
like($date_string, qr/2011-06-16T12:00:00\+|-\d\d:\d\d/, 'RFC3339 output');
51
- 

Return to bug 20178