Subject: | Is breakage of "en-us"(should be "en_US" or at least "en-US") intentional? |
Hi Dave,
We're getting reports that DateTime::Locale 1.01 breaks RT. Looks like "en-us" no longer loads a locale. I'm happy to ship releases to use the recommended "en_US" but I wanted to flag this in case it was inadvertent.
perl -MDateTime::Locale -le 'print DateTime::Locale->VERSION; my $loc = DateTime::Locale->load("en-us"); print $loc; print $loc->datetime_format_long;'
0.45
DateTime::Locale::en=HASH(0x7fcab382ec90)
MMMM d, y h:mm:ss a z
perl -MDateTime::Locale -le 'print DateTime::Locale->VERSION; my $loc = DateTime::Locale->load("en-us"); print $loc; print $loc->datetime_format_long;'
1.01
Invalid locale code or name: en-us
perl -MDateTime::Locale -le 'print DateTime::Locale->VERSION; my $loc = DateTime::Locale->load("en-US"); print $loc; print $loc->datetime_format_long;'
1.01
DateTime::Locale::FromData=HASH(0x7f949a845d50)
MMMM d, y 'at' h:mm:ss a z