Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
The *DateTime::TimeZone* Perl module is now aware of recent time zone updates
Previously, the Olson time zone database was outdated. As a consequence, applications written in the Perl language that use the *DateTime::TimeZone* module mishandled time zones that changed their specifications since version 2013h. The _perl-DateTime-TimeZone_ package has been rebased to version 1.70, and the Olson time zone database has been updated to version 2017b. As a result, the *DateTime::TimeZone* module is aware of all time zone updates until version 2017b.
Current distributions provides version 1.63. There are new upstream releases, latest is 1.69 now:
The release updates Perl time zone database to IANA verions 2014c. It inlcudes
changes for Crimea and Troll Station in Antarctica, Egypt, and Turkey. The
release fixes running under taint mode id "local" time zone is used.
To provide current time zone data for Perl applications and libraries, it's necessary to rebase perl-DateTime-TimeZone to the latest version.
Current upstream version is 1.74. The changes since 1.69 are:
1.74 2014-08-30
- This release is based on version 2014g of the Olson database. This release
includes contemporary changes for Turks & Caicos.
- Fixed a bug when trying to get the local timezone by looking at
/etc/sysconfig/clock. Patch by Alexey Molchanov. GitHub PR #2.
1.73 2014-08-06
- This release is based on version 2014f of the Olson database. This release
includes contemporary changes for Russia and Australia.
1.72 2014-08-03
- Added support for getting the local time zone on Android. Patch from Brian
Fraser. RT #97711.
- The primary repo for this distro is now on GitHub.
1.71 2014-06-21
- This release is based on version 2014e of the Olson database. This release
includes contemporary changes for Egypt and Morocco.
1.70 2014-06-01
- Unset $ENV{TZ} in the t/04local.t test to avoid interference from
the system. Reported by Mark Gardner. RT #96083.
- This release is based on version 2014d of the IANA database, but there are
no data changes from 2014c.
The 1.74 breaks perl-DateTime tests. There is a simple fix for the perl-DateTime <http://pkgs.fedoraproject.org/cgit/perl-DateTime.git/commit/?h=f20&id=7a22f1f6770a1b0efa703fbbec433bb9a61e7566>.
(In reply to Petr Pisar from comment #2)
> The 1.71 version requires a new Perl module List::AllUtils.
Which would require rebasing perl-Scalar-List-Utils and a new perl-Test-Warnings package.
It's getting complicated.
We will see if we can update time zone data only without touch the library and tests.
Created attachment 1296137[details]
Source repository patch on top of bug #1241818
This dist-git patch on top of 1.64 rebase (bug #1241818) rebases to 1.70 and then adds 2017b tzdata sources and regenerates the Perl code from them.
Created attachment 1296212[details]
Source repository patch on top of bug #1241818
This adds a correction for parsing short time zones with signs that exists in Africa/Accra since 2017a time zone data.
How to test:
(1) Use DateTime Perl object with time and time zone whose rules changed after releasing 2013h Olson database (bundled within the old perl-DateTime-TimeZone-1.63-2.el7 package) and before relasing 2017b Olson database (provided within the new perl-DateTime-TimeZone-1.70-1.el7 package). E.g. this command:
$ perl -e 'use DateTime; my $d=DateTime->new(year=>2015,month=>5,day=>1,hour=>0,minute=>0,second=>0,time_zone=>q{UTC}); $d->set_time_zone(q{Asia/Ulaanbaatar}); print $d->strftime(q{%FT%T%z}), qq{\n}'
Before:
2015-05-01T08:00:00+0800
After:
2015-05-01T09:00:00+0900
(2) You can compare it with date(1) output that uses database from tzdata package:
$ TZ=Asia/Ulaanbaatar date --date '2015-05-01T00:00:00+0000' '+%FT%T%z'
2015-05-01T09:00:00+0900
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2018:0664
Comment 22hamzamaq
2022-04-01 18:32:17 UTC
Comment hidden (spam)
This comment was flagged a spam, view the edit history to see the original text if required.
Comment 23Jacobhue
2022-05-11 02:27:13 UTC
Comment hidden (spam)
This comment was flagged a spam, view the edit history to see the original text if required.
Comment 24ElijahRodney
2022-07-03 10:40:17 UTC
Comment hidden (spam)