datetime question

MRAB python at mrabarnett.plus.com
Tue Nov 12 14:09:11 EST 2013


On 12/11/2013 16:12, Tim Chase wrote:
> 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.
>
FTR, the countries in the EU all change at the same (UTC) time.



More information about the Python-list mailing list