[issue29457] strftime('%x') does not use my locale

Hugo Osvaldo Barrera report at bugs.python.org
Mon Feb 6 02:22:14 EST 2017


Hugo Osvaldo Barrera added the comment:

It would seem that

    locale.setlocale(locale.LC_TIME, "")

fixes the issue. However, there seems to be no mention on this on the relevant documentation page[1], which is actually the source of my confusion.

As a "fix" to this issue (since I'm probably not the first nor last person to come across it), can we add a note regarding this below the table in section 8.1.8.

[1]: https://docs.python.org/3.6/library/datetime.html#strftime-strptime-behavior

----------

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


More information about the Python-bugs-list mailing list