Commit c1f32ca0 authored by Victor Stinner's avatar Victor Stinner

Issue #10653: On Windows, use strftime() instead of wcsftime() because

wcsftime() doesn't format time zone correctly.
parent d41a98bd
...@@ -43,6 +43,9 @@ Core and Builtins ...@@ -43,6 +43,9 @@ Core and Builtins
Library Library
------- -------
- Issue #10653: On Windows, use strftime() instead of wcsftime() because
wcsftime() doesn't format time zone correctly.
- Issue #11171: Fix distutils.sysconfig.get_makefile_filename when Python was - Issue #11171: Fix distutils.sysconfig.get_makefile_filename when Python was
configured with different prefix and exec-prefix. configured with different prefix and exec-prefix.
......
...@@ -431,6 +431,11 @@ checktm(struct tm* buf) ...@@ -431,6 +431,11 @@ checktm(struct tm* buf)
return 1; return 1;
} }
#ifdef MS_WINDOWS
/* wcsftime() doesn't format correctly time zones, see issue #10653 */
# undef HAVE_WCSFTIME
#endif
#ifdef HAVE_STRFTIME #ifdef HAVE_STRFTIME
#ifdef HAVE_WCSFTIME #ifdef HAVE_WCSFTIME
#define time_char wchar_t #define time_char wchar_t
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment