[issue14083] Use local timezone offset by default in datetime.timezone
Alexander Belopolsky
report at bugs.python.org
Wed Feb 22 04:25:19 CET 2012
Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:
The problem with this idea is that while evaluating datetime.datetime.now(datetime.timezone()), python will have to query the real time clock twice (first in timezone() and then in now()). At a particularly unfortunate time this may result in an error. Unlikely? Yes, but I would not board a python powered airplane if this problem was in the standard library.
I gave a lot of thought to the problem of supporting timezone aware local time and issue9527 was the best solution I was able to come up with.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14083>
_______________________________________
More information about the Python-bugs-list
mailing list