Hi 1nickt,
I think the best of all in his case may be to add the time_zone param in the constructor as you say, but provide the value "local".
That's an excellent point!
Just to expand on that, it's also possible to say time_zone=>'America/New_York' - see the output of perl -MDateTime::TimeZone -le 'print for DateTime::TimeZone->all_names' .
Regards,
-- Hauke D
In reply to Re^4: Converting dates with Date:Format
by haukex
in thread Converting dates with Date:Format
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |