Hugo Osvaldo Barrera added the comment:
The problem is that the datetime/strftime documentation describes "%c" as:
Locale’s appropriate date and time representation.
However, this is not really accurate (this is not the *default* behaviour),
that's why I was mentioning th
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
New submission from Hugo Osvaldo Barrera:
As the the posix spec for strftime:
%c The preferred date and time representation for the current locale.
%x The preferred date representation for the current locale without the time.
However, python doesn't seem to respect this:
$ python3