datetime, tzinfo ... strange conversion?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Apr 3 05:21:20 EDT 2006


In article <e0mfrn$h1s$1 at newsreader3.netcologne.de>,
 Tino Lange <tl_news at nexgo.de> wrote:

>--> Why is GMT (3) wrong?

At a guess, it's because there's nothing in the parameters passed to 
indicate that daylight saving is currently in effect.

Tip: always do your date/time calculations as far as possible in UTC. 
Only convert to local time at the last possible step, before displaying 
results to the user.



More information about the Python-list mailing list