Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 43749
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: MAROS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.46
Fixed in: 0.47



Subject: j{1,2} pattern in format_cldr
Hi, during writing test cases for DateTime::Format::CLDR I have found a potential bug in CLDR patterns. Documentations says: j{1,2} The hour, in 12 or 24 hour form, based on the preferred form for the locale. In other words, this is equivalent to either "h{1,2}" or "H{1,2}". Thus i'd expect the following expression to print '11' (since 'DateTime::Locale::en_US' has prefers_24_hour_time == 0) say DateTime->today->set_hour(23)->set_locale("en_US")->format_cldr("j") However the result is '23' Cheers Maroš