Skip Menu |

This queue is for tickets about the Date-Manip CPAN distribution.

Report information
The Basics
Id: 61911
Status: resolved
Priority: 0/
Queue: Date-Manip

People
Owner: Nobody in particular
Requestors: amish [...] 3g.co.za
Cc:
AdminCc:

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



Subject: UnixDate Error from 2010090502:00:00 to 2010090502:59:59
Date: Tue, 05 Oct 2010 22:36:51 +0200
To: bug-Date-Manip [...] rt.cpan.org
From: Amish Chana <amish [...] 3g.co.za>
Dear Sullivan, If I use the UnixDate function as follows: $result = UnixDate($datetime,"%w") If $datetime is equal to a value from 2010090502:00:00 to 2010090502:59:59 then I get the following error: ---------------- WARNING: [printf] Object must contain a valid date Use of uninitialized value $ret[0] in join or string at /usr/lib/perl5/site_perl/5.10.1/Date/Manip.pm line 197, <STDIN> line 1. ---------------- The function works fine for other values of $datetime variable but returns an error for the above range. The error is present in version 6.11 and 6.12 with perl version 5.10.1. Best Regards, Amish
On Tue Oct 05 16:37:05 2010, amish@3g.co.za wrote: Show quoted text
> Dear Sullivan, > > If I use the UnixDate function as follows: $result = > UnixDate($datetime,"%w") > > If $datetime is equal to a value from 2010090502:00:00 to > 2010090502:59:59 then I get the following error: > ---------------- > WARNING: [printf] Object must contain a valid date > Use of uninitialized value $ret[0] in join or string at > /usr/lib/perl5/site_perl/5.10.1/Date/Manip.pm line 197, <STDIN> line 1. > ---------------- > > The function works fine for other values of $datetime variable but > returns an error for the above range. > The error is present in version 6.11 and 6.12 with perl version 5.10.1.
What timezone are you in? This looks like a daylight saving time issue. If you tell me what timezone you're in, I'll check it out.
Subject: Re: [rt.cpan.org #61911] UnixDate Error from 2010090502:00:00 to 2010090502:59:59
Date: Wed, 06 Oct 2010 09:47:54 +0200
To: bug-Date-Manip [...] rt.cpan.org
From: Amish Chana <amish [...] 3g.co.za>
On 10/06/2010 02:05 AM, Sullivan Beck via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=61911> > > On Tue Oct 05 16:37:05 2010, amish@3g.co.za wrote: >
>> Dear Sullivan, >> >> If I use the UnixDate function as follows: $result = >> UnixDate($datetime,"%w") >> >> If $datetime is equal to a value from 2010090502:00:00 to >> 2010090502:59:59 then I get the following error: >> ---------------- >> WARNING: [printf] Object must contain a valid date >> Use of uninitialized value $ret[0] in join or string at >> /usr/lib/perl5/site_perl/5.10.1/Date/Manip.pm line 197,<STDIN> line 1. >> ---------------- >> >> The function works fine for other values of $datetime variable but >> returns an error for the above range. >> The error is present in version 6.11 and 6.12 with perl version 5.10.1. >>
> What timezone are you in? This looks like a daylight saving time issue. > If you tell me what timezone you're in, I'll check it out. > >
I'm using SAST - South African Standard Time, which is GMT+2. The system timezone is "Africa/Johannesburg". We don't use daylight saving.
This is fixed and will be in the next Date::Manip release. The timezone abbreviations were not being tested in the correct order since there was a problem with how the order was determined and stored in the Zones.pm module. This has now been corrected.