$timezone = sprintf("%+04d", $_*100) if $timezone =~ m{^Etc/GMT(.+)};

On Sun, Jun 26, 2016 at 11:44 PM, Steve James <4steveja...@gmail.com> wrote:

> Thanks for your reply.
>
> My users select a timezone from a list.  I do not think that +0600 will be
> as clear as Etc/GMT+6, so it looks like I am going to have to do a
> workaround for this.  ;-(
>
> I think I can maybe store +0600 but show Etc/GMT+6 to the user (via an
> HTML select), but I will have to see...
> ᐧ
>
> On Sun, Jun 26, 2016 at 8:18 PM, Eric Brine <ikeg...@adaelis.com> wrote:
>
>> 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 <4steveja...@gmail.com>
>> 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>
>>> ᐧ
>>>
>>
>>
>
>
> --
> *Steve James*
> PE, CPE, PMP, Six Sigma Blackbelt
> *Cell:*  818-570-1197
> *Email:*  4steveja...@gmail.com
> *Linkedin:  **http://www.linkedin.com/in/sejames*
> <http://www.linkedin.com/in/sejames>
>

Reply via email to