I have a calendar on my site created in Perl using Template :: Toolkit and Template :: Plugin :: Date .
He highlights the current day. I achieve this by repeating all the dates (when I print the calendar) and comparing them with the current date. Something like that:
[% IF cur_date == date.format(format = '%Y-%m-%d') %]
...
[% END %]
Everything works well until someone in Australia looks at him. (They are in a different time zone for me and my server in the UK).
What is the best way to get Template::Plugin::Dateto use a different time zone? It accepts the "locale" parameter, but AFAIK is used only for formatting.
aidan source
share