[issue10102] mktime adding an hour in April (naive struct)?

Alexander Belopolsky report at bugs.python.org
Thu Oct 14 17:37:32 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

It looks like you have just discovered the joys of daylight saving time.  The problem with your example is that datetime(2003,4,6,2,58,17) is not a valid time in your timezone (most likely you are in the US).  In the US, prior to 2007, the clocks moved 1 hour ahead at 2AM on the first Sunday in April. An thus 1:59 AM was followed by 3:00 AM and 2:58:17 never occurred.

See the following link for detailed discussion of these issues:

http://docs.python.org/dev/py3k/library/datetime.html#tzinfo-objects

----------
nosy: +belopolsky
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10102>
_______________________________________


More information about the Python-bugs-list mailing list