datetime question

Tim Chase python.list at tim.thechases.com
Tue Nov 12 11:12:32 EST 2013


On 2013-11-12 17:57, Ferrous Cranus wrote:
> > Best practices say to move the value from local time to UTC as
> > soon as possible, then store/use the UTC time internally for all
> > operations.  Only when it's about to be presented to the user
> > should you convert it back to local time if you need to.
> 
> or perhaps by confiruing the timezone of the server to use Greece's 
> TimeZone by issuing a linux command?

Regardless of the server's configured TZ, best practice still says to
normalize everything to UTC (ESPECIALLY if Greece uses the
abomination of DST that we suffer here in the US) as soon as
possible and keep it that way for as long as possible.

-tkc





More information about the Python-list mailing list