Time zone changing while Win app is running

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Apr 3 03:37:33 EDT 2013


On Tue, 02 Apr 2013 17:04:12 -0700, CM wrote:

> To summarize the issue:  In an application, I have been using Python's
> datetime module to get the current time.  But it seems that, at least
> with Windows (XP), whatever time zone your computer is set to when you
> start the application, that's what datetime will use--the time zone will
> *not* be updated in the application when you update it manually with
> Windows.  So, if you change the time zone (say, after traveling with
> your laptop), all datetimes will be incorrect as compared to your system
> clock.

I am not the maintainer of the datetime module, but based purely on what 
you have said, I would consider that a bug. I suggest you report it as an 
issue on the Python bug tracker.


-- 
Steven



More information about the Python-list mailing list