Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
792b47f6
Commit
792b47f6
authored
Oct 14, 2011
by
Victor Stinner
Browse files
Options
Browse Files
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
...
@@ -305,6 +305,9 @@ Core and Builtins
Library
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
- Issue #13150: The tokenize module doesn'
t
compile
large
regular
expressions
at
startup
anymore
.
at
startup
anymore
.
...
...
Modules/timemodule.c
View file @
792b47f6
...
@@ -386,6 +386,11 @@ checktm(struct tm* buf)
...
@@ -386,6 +386,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
...
...
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