Subject: Re: pkg/35250: p5-Date-Manip fails to obtain timezone
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: OBATA Akio <obache@netbsd.org>
List: pkgsrc-bugs
Date: 08/15/2007 13:25:03
The following reply was made to PR pkg/35250; it has been noted by GNATS.
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/35250: p5-Date-Manip fails to obtain timezone
Date: Wed, 15 Aug 2007 22:21:57 +0900
On Thu, 14 Dec 2006 05:25:01 +0900, <MarkoSchuetz@web.de> wrote:
>> Description:
> Date::Manip fails to obtain the correct timezone.
>> How-To-Repeat:
> /etc/localtime is a link to /usr/share/zomeinfo/Pacific/Fiji and TZ is=
not set. Then e.g.
> fjpad% echo '(yahoo "CSCO")' | gnc-fq-helper
>
> ERROR: Date::Manip unable to determine TimeZone.
> at /usr/pkg/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 3635
> Date::Manip::Date_TimeZone called at /usr/pkg/lib/perl5/vendor=
_perl/5.8.0/Date/Manip.pm line 676
> Date::Manip::Date_Init() called at /usr/pkg/lib/perl5/vendor_p=
erl/5.8.0/Date/Manip.pm line 799
> Date::Manip::ParseDateString('12/13/2006 3:00pm') called at /u=
sr/pkg/bin/gnc-fq-helper line 217
> main::get_quote_time('CSCO', 'HASH(0x83fedd4)') called at /usr=
/pkg/bin/gnc-fq-helper line 247
> main::schemify_quote('CSCO', 'HASH(0x83fedd4)', 2) called at /=
usr/pkg/bin/gnc-fq-helper line 280
> main::schemify_quotes('ARRAY(0x83feb04)', 'HASH(0x83fedd4)') c=
alled at /usr/pkg/bin/gnc-fq-helper line 369
>
>> Fix:
Following patch should fixes FJT problem.
--- Manip.pm.orig 2005-06-02 15:47:42.000000000 +0000
+++ Manip.pm
@@ -645,6 +645,7 @@ sub Date_Init {
"cadt +1030 ". # Central Australian Daylight
"aedt +1100 ". # Australian Eastern Daylight
"eadt +1100 ". # Eastern Australian Daylight
+ "fjt +1200 ". # Fiji Standard
"idle +1200 ". # International Date Line East
"nzst +1200 ". # New Zealand Standard
"nzt +1200 ". # New Zealand
Date-Manip have many missing, duplicate and unknown Time Zones.
http://rt.cpan.org/Public/Bug/Display.html?id=3D16360
-- =
"Of course I love NetBSD":-)
OBATA Akio / obache@NetBSD.org