[issue22426] strptime accepts the wrong '2010-06-01 MSK' string but rejects the right '2010-06-01 MSD'

Alexander Belopolsky report at bugs.python.org
Wed Sep 17 02:53:58 CEST 2014


Alexander Belopolsky added the comment:

There is no daylight savings time in Moscow and python detects this correctly:

$ TZ=Europe/Moscow python3
>>> import time
>>> time.daylight
0

Note that historically, there was DST, but time module cannot handle historical TZ changes.

(Russian government compensates the relative sanity of not moving the clocks twice a year by changing the UTC offset and TZ boundaries every 5 years or so.:-)

----------

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


More information about the Python-bugs-list mailing list