Skip Menu |

This queue is for tickets about the DateTime-Format-CLDR CPAN distribution.

Report information
The Basics
Id: 71602
Status: resolved
Priority: 0/
Queue: DateTime-Format-CLDR

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

Bug Information
Severity: Normal
Broken in: 1.12
Fixed in: (no value)



Subject: Documentation for Z+ CLDR patterns is incorrect
DateTime-Format-CLDR has the same documentation bug that I reported in DateTime as RT#64387 (probably because you copied the docs from DateTime). The CLDR Patterns documentation says: Z{1,3} The time zone short name and the offset as one string, so something like "CDT-0500". ZZZZ The time zone long name. However, what the code actually *does* is: Z{1,3} The time zone offset (like "-0500") ZZZZ The time zone short name and the offset as one string, so something like "CDT-0500". Since the actual behavior is more useful than the documented behavior (and because DateTime has already changed its docs), I'm calling this a documentation bug. (According to the documentation, there's no way to parse just the offset without the short name.) Also, that means you can fix it without breaking anybody's code.
This issue has been resolved in DT::Format::CLDR 1.13 Cheers Maroš