Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
cpython
Commits
792b47f6
Commit
792b47f6
authored
13 years ago
by
Victor Stinner
Browse files
Options
Download
Plain Diff
(Merge 3.2) Issue #10653: On Windows, use strftime() instead of wcsftime()
because wcsftime() doesn't format time zone correctly.
parents
f5cff56a
c1f32ca0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
Misc/NEWS
Misc/NEWS
+3
-0
Modules/timemodule.c
Modules/timemodule.c
+5
-0
No files found.
Misc/NEWS
View file @
792b47f6
...
...
@@ -305,6 +305,9 @@ Core and Builtins
Library
-------
-
Issue
#
10653
:
On
Windows
,
use
strftime
()
instead
of
wcsftime
()
because
wcsftime
()
doesn
't format time zone correctly.
- Issue #13150: The tokenize module doesn'
t
compile
large
regular
expressions
at
startup
anymore
.
...
...
This diff is collapsed.
Click to expand it.
Modules/timemodule.c
View file @
792b47f6
...
...
@@ -386,6 +386,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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment