Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 4212
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: pete_barlow [...] ntlworld.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.1705
Fixed in: (no value)



Subject: DateTime timezone for SuSE Linux 8.1
DateTime 0.1705 Perl 5.8.0 SuSE 8.1 As far as I can see from looking at the code the local time zone is obtained from looking at /etc/sysconfig/clock on this OS. On my system the file contains the line TIMEZONE="GMT0" rather than ZONE="GMT0" and this caused one of the tests for Astro::Sunrise to fail because it couldn't determine the local time zone. I think it is easy to fix by changing the line in sub _read_etc_sysconfig_clock in Local.pm to read next unless /ZONE=/; But I don't have the skill to determine if this a bug in DateTime or a misconfiguration in SuSE (although I used their sys config GUI to set everything up initially) I have changed Locla.pm as above on my system and rerun the tests for DateTime::TimeZone, DateTime, and Astro::Sunrise - all o.k. Pete
Date: Sat, 25 Oct 2003 11:42:44 -0500 (CDT)
From: Dave Rolsky <autarch [...] urth.org>
To: Guest via RT <bug-DateTime [...] rt.cpan.org>
Subject: Re: [cpan #4212] DateTime timezone for SuSE Linux 8.1
RT-Send-Cc:
On Sat, 25 Oct 2003, Guest via RT wrote: Show quoted text
> I think it is easy to fix by changing the line in sub _read_etc_sysconfig_clock in Local.pm to read > > next unless /ZONE=/;
Actually, it's better to use /^(?:TIME)ZONE=/ I'd rather be more restrictive and not pick up some other type of zone ;) Show quoted text
> But I don't have the skill to determine if this a bug in DateTime or a > misconfiguration in SuSE (although I used their sys config GUI to set > everything up initially)
Every OS does this stuff differently. I just add support for them as people tell me how they work. I use Debian myself, and that's all I have to test on. Thanks, -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/
Date: Sat, 25 Oct 2003 11:53:54 -0500 (CDT)
From: Dave Rolsky <autarch [...] urth.org>
To: Guest via RT <bug-DateTime [...] rt.cpan.org>
Subject: Re: [cpan #4212] DateTime timezone for SuSE Linux 8.1
RT-Send-Cc:
On Sat, 25 Oct 2003, Guest via RT wrote: Show quoted text
> This message about DateTime was sent to you by guest <> via rt.cpan.org
BTW, you stuck this in the wrong queue. It belongs in the DateTime::TimeZone queue. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/