Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dd3cc7c

Browse filesBrowse files
author
adustman
committed
Use isoformat() instead of strftime() to avoid year limitations of the latter. Fixes #3296395
1 parent 6fc719b commit dd3cc7c
Copy full SHA for dd3cc7c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎MySQLdb/MySQLdb/times.py

Copy file name to clipboardExpand all lines: MySQLdb/MySQLdb/times.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def format_TIMEDELTA(v):
3838
return '%d %d:%d:%d' % (v.days, hours, minutes, seconds)
3939

4040
def format_TIMESTAMP(d):
41-
return d.strftime("%Y-%m-%d %H:%M:%S")
41+
return d.isoformat(" ")
4242

4343

4444
def DateTime_or_None(s):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.