[Bug 1135981] DateTime::TimeZone::Local->TimeZone does not use /etc/locatime content (Cannot determine local time zone)

bugzilla at redhat.com bugzilla at redhat.com
Tue Sep 2 06:39:36 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1135981



--- Comment #3 from Petr Pisar <ppisar at redhat.com> ---
perl-DateTime-TimeZone is obsessed with time zone names. What
DateTime::TimeZone::Local->TimeZone does is it tries to determine the zone name
by many means. If it can figure out the name, it uses it as a key into its own
time zone database.

Some of the many means are:

(1) Reading /etc/localtime symbolic link value

(2) If /etc/localtime is not a symbolic link, it finds its copy under
/usr/share/zoneinfo whose path name is the zone name.

The tzdata presents in the minimal build root by a transitive dependency. The
issue probably is the /etc/localtime is copied by mock into the chroot because
the chroot is empty. Then tzadata are installed by @build group. Results the
/etc/locatime is a plain file and sometimes out-dated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=rHQM5Vh89R&a=cc_unsubscribe



More information about the perl-devel mailing list