Skip to content

Commit 2176385

Browse files
[3.13] gh-131825: Fix sqlite3 timezone-naive adapter recipe (GH-136270) (GH-136468)
gh-131825: Fix `sqlite3` timezone-naive adapter recipe (GH-136270) (cherry picked from commit 6a6cd3c) Co-authored-by: NekrodNIK <[email protected]>
1 parent 7a548e2 commit 2176385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/sqlite3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2307,7 +2307,7 @@ This section shows recipes for common adapters and converters.
23072307

23082308
def adapt_datetime_iso(val):
23092309
"""Adapt datetime.datetime to timezone-naive ISO 8601 date."""
2310-
return val.isoformat()
2310+
return val.replace(tzinfo=None).isoformat()
23112311

23122312
def adapt_datetime_epoch(val):
23132313
"""Adapt datetime.datetime to Unix timestamp."""

0 commit comments

Comments
 (0)