Re: DateTime and Etc timezones
[email protected] (Eric Brine) Sun, 26 Jun 2016 23:18:47 -0400
| Newsgroups | perl.datetime |
|---|---|
| Message-ID | <CALJW-qFSKQaT4UqY1p9p7gmch+ug3pWpjDR68BPMK=eTFBJPeA@mail.gmail.com> |
It does, however, support "+XXXX" and "-XXXX". $ perl -MDateTime -E'DateTime->today(time_zone => "+0600"); say "ok"' ok On Sun, Jun 26, 2016 at 11:13 PM, Steve James <[email protected]> wrote: > I am the principal developer for the FreeToastHost website system, a free > website provider, content management system, and email list server used by over > 10,000+ Toastmasters public speaking clubs worldwide. Toastmasters is a > non-profit and much of the labor to support clubs is done on a volunteer > basis. FreeToastHost is an independent effort created by Toastmasters club > members from open source libraries and via volunteer labor. (myself > included) FreeToastHost uses a number of your DateTime module functions. > > We have recently ran into an issue where it appears that DateTime does not > support "Etc/" style names for timezones. (e.g. "Etc/GMT+6") > > For example, the following produces an exception for me when running in a > plain vanilla test script: > >> my $today = DateTime->today(time_zone => 'Etc/GMT+6'); > > > Is there something I am missing or is this as intended? > > -- > *Steve James* > *Linkedin: **http://www.linkedin.com/in/sejames* > <http://www.linkedin.com/in/sejames> > ᐧ >