mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #10653: On Windows, use strftime() instead of wcsftime() because
wcsftime() doesn't format time zone correctly.
This commit is contained in:
parent
d41a98bdd9
commit
c1f32ca0ad
2 changed files with 8 additions and 0 deletions
|
@ -431,6 +431,11 @@ checktm(struct tm* buf)
|
|||
return 1;
|
||||
}
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
/* wcsftime() doesn't format correctly time zones, see issue #10653 */
|
||||
# undef HAVE_WCSFTIME
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRFTIME
|
||||
#ifdef HAVE_WCSFTIME
|
||||
#define time_char wchar_t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue