1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
Description: adjust to DateTime::Locale 1.33
Origin: vendor
Bug-Debian: https://bugs.debian.org/998568
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2021-11-04
Forwarded: https://github.com/dagolden/Time-Tiny/pull/5
Bug: https://github.com/dagolden/Time-Tiny/pull/4
--- a/t/02_main.t
+++ b/t/02_main.t
@@ -63,7 +63,10 @@
my $dt = $date->DateTime;
isa_ok( $dt, 'DateTime' );
# DateTime::Locale version 1.00 changes "C" to "en-US-POSIX".
- my $expected = eval { DateTime::Locale->VERSION(1) } ? "en-US-POSIX" : "C";
+ # DateTime::Locale version 1.33 changes "en-US-POSIX" to "en_US".
+ my $expected = eval { DateTime::Locale->VERSION(1.33) } ? "en-US" :
+ eval { DateTime::Locale->VERSION(1) } ? "en-US-POSIX" :
+ "C";
is( $dt->locale->id, $expected, '->locale ok' );
is( $dt->time_zone->name, 'floating', '->timezone ok' );
|