Change in the perl-DateTime-TimeZone API related to time zone name and alias
Updated
The DateTime::TimeZone Perl module is the primary interface of time zones for the DateTime object.
The DateTime::TimeZone Perl module version 2.62, distributed in RHEL 8.10 (updated from 2.19) and RHEL 9.4 (updated from 2.47), changed the value that is returned by the name() method from the time zone alias to the main time zone name.
Example code:
#!/usr/bin/perl
use strict;
use warnings;
use DateTime::TimeZone;
my $tz = DateTime::TimeZone->new( name => 'Europe/Copenhagen' );
my $name = $tz->name;
print "Name: $name\n";
DateTime::TimeZone versions up to 2.52 return Europe/Copenhagen, which is the time zone alias.
DateTime::TimeZone versions 2.53 and later return Europe/Berlin, which is the time zone name.
This article is the related to This content is not included.Timezone name changes between set and get ticket.
Product(s)
Category
Components
Article Type