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š