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: 32136
Status: rejected
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: dmuey [...] cpan.org
Cc:
AdminCc:

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



Subject: Invalid offset: CST
Hello Dave, Thanks for your hard work on DateTime, I saw your speech in YACP::NA in Houston, very excellent! Anywho, Its not recognizing CST as a valid offset which shoudl be valid unless I;m just waaay off (which is possible ;p) For example, below, EST is good but CST throws an error. multivac:~ dmuey$ perl -le 'use DateTime;print DateTime->now(time_zone=>"EST")- Show quoted text
>strftime("%F %r");'
2008-01-07 12:27:43 AM multivac:~ dmuey$ dateSun Jan 6 23:27:52 CST 2008 multivac:~ dmuey$ perl -le 'use DateTime;print DateTime->now(time_zone=>"CST")- Show quoted text
>strftime("%F %r");'
Invalid offset: CST multivac:~ dmuey$ multivac:~ dmuey$ perl -MDateTime -le 'print $DateTime::VERSION;' 0.41 multivac:~ dmuey$
Subject: Re: [rt.cpan.org #32136] Invalid offset: CST
Date: Mon, 7 Jan 2008 09:40:19 -0600 (CST)
To: Daniel Muey via RT <bug-DateTime [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Mon, 7 Jan 2008, Daniel Muey via RT wrote: Show quoted text
> Thanks for your hard work on DateTime, I saw your speech in YACP::NA in Houston, very > excellent! Anywho, Its not recognizing CST as a valid offset which shoudl be valid unless I;m > just waaay off (which is possible ;p) > > For example, below, EST is good but CST throws an error. > > multivac:~ dmuey$ perl -le 'use DateTime;print DateTime->now(time_zone=>"EST")-
>> strftime("%F %r");'
> 2008-01-07 12:27:43 AM > multivac:~ dmuey$ dateSun Jan 6 23:27:52 CST 2008 > multivac:~ dmuey$ perl -le 'use DateTime;print DateTime->now(time_zone=>"CST")-
>> strftime("%F %r");'
> Invalid offset: CST > multivac:~ dmuey$ > > multivac:~ dmuey$ perl -MDateTime -le 'print $DateTime::VERSION;' > 0.41 > multivac:~ dmuey$
CST isn't really a time zone, it's just the name of Central _during_ standard during. There's an EST for historical reasons, and there's CST6CDT as well as others like that. You're really much, much, much better off using full names like America/Chicago or America/New_York. In fact, EST does not follow DST rules, which probably isn't what you want. -dave /*=================================================== VegGuide.Org www.BookIRead.com Your guide to all that's veg. My book blog ===================================================*/
From: dmuey [...] cpan.org
Show quoted text
> CST isn't really a time zone, it's just the name of Central _during_ > standard during. There's an EST for historical reasons, and there's > CST6CDT as well as others like that. > > You're really much, much, much better off using full names like > America/Chicago or America/New_York. In fact, EST does not follow DST > rules, which probably isn't what you want. > > > -dave
Excellent, thanks for the info. Appreciate your time (oi, pun sorry)