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.
Bug 1101251 - Upgrade perl-DateTime-TimeZone to deliver time zone updates
Summary: Upgrade perl-DateTime-TimeZone to deliver time zone updates
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: perl-DateTime-TimeZone
Version: 7.1
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Petr Pisar
QA Contact: Martin Kyral
Adam Kvitek
URL: http://search.cpan.org/dist/DateTime-...
Depends On: 1136407
Blocks: 1110708 1191019 1420851 1465904 1466370
TreeView+ depends on / blocked
Reported: 2014-05-26 12:58 UTC by Petr Pisar
Modified: 2023-05-15 09:18 UTC (History)
14 users (show)

Fixed In Version: perl-DateTime-TimeZone-1.70-1.el7
Doc Type: Rebase: Bug Fixes Only
Doc Text:
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.
Clone Of:
Last Closed: 2018-04-10 08:38:24 UTC
Target Upstream Version:

Attachments (Terms of Use)
Source repository patch on top of bug #1241818 (20.73 KB, patch)
2017-07-11 09:01 UTC, Petr Pisar
no flags Details | Diff
Source repository patch on top of bug #1241818 (23.03 KB, patch)
2017-07-11 12:24 UTC, Petr Pisar
no flags Details | Diff

System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1241818 0 unspecified CLOSED Please update to >= 1.64 to let bugzilla 5.0 run. 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2018:0664 0 None None None 2018-04-10 08:38:51 UTC

Internal Links: 1241818

Description Petr Pisar 2014-05-26 12:58:52 UTC
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.

Comment 1 Petr Pisar 2014-09-02 12:40:52 UTC
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>.

Comment 2 Petr Pisar 2014-09-02 13:53:07 UTC
The 1.71 version requires a new Perl module List::AllUtils.

Comment 3 Petr Pisar 2014-09-02 13:59:50 UTC
(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.

Comment 4 Petr Pisar 2014-09-05 12:08:27 UTC
Due to dependencies there will be no rebase of this package. We will try to update the time zone database only without touching the code.

Comment 10 Petr Pisar 2017-07-11 09:01:50 UTC
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.

Comment 11 Petr Pisar 2017-07-11 12:24:47 UTC
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.

Comment 12 Petr Pisar 2017-08-17 10:57:08 UTC
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}'


(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'

Comment 20 errata-xmlrpc 2018-04-10 08:38:24 UTC
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.


Comment 22 hamzamaq 2022-04-01 18:32:17 UTC Comment hidden (spam)
Comment 23 Jacobhue 2022-05-11 02:27:13 UTC Comment hidden (spam)
Comment 24 ElijahRodney 2022-07-03 10:40:17 UTC Comment hidden (spam)

Note You need to log in before you can comment on or make changes to this bug.