[issue32988] datetime.datetime.strftime('%s') always uses local timezone, even with aware datetimes
Paul Ganssle
report at bugs.python.org
Fri Mar 2 20:05:24 EST 2018
Paul Ganssle <p.ganssle at gmail.com> added the comment:
It seems that %s is not supported and the fact that it works at all is incidental. See issue 12750 and this SO thread:
https://stackoverflow.com/questions/11743019/convert-python-datetime-to-epoch-with-strftime
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32988>
_______________________________________
More information about the Python-bugs-list
mailing list