Subject: | timezone "local" failing on FreeBSD 6.2-PRE |
Date: | Wed, 20 Dec 2006 18:19:31 -0500 |
To: | bug-DateTime-TimeZone [...] rt.cpan.org |
From: | Steve Wills <steve [...] stevenwills.com> |
I'm using DateTime-TimeZone-0.48 on FreeBSD 6.2-PRERELEASE. When I
try to use "local" timezone, I get an error:
Cannot determine local time zone
This may be related to the bug 14874.
For me, this patch fixes it:
--- /tmp/Local.pm Wed Dec 20 16:52:49 2006
+++ Local.pm Wed Dec 20 18:20:13 2006
@@ -144,6 +144,7 @@
if ( ! defined $real_name
&& -f $_
&& ! -l $_
+ && $_ ne "/usr/share/zoneinfo/posixrules"
&& $size == -s $_
&& File::Compare::compare( $_,
$file_to_match ) == 0
)
This makes the find skip the posixrules file. I don't know what that
file is, but it's not a timezone.
Steve