mirror of
https://github.com/python/cpython
synced 2024-09-15 22:58:09 +00:00
bpo-45335: Add note to sqlite3
docs about "timestamp" converter (GH-29200)
This commit is contained in:
parent
f0150ac94a
commit
3877fc02f7
|
@ -1095,6 +1095,12 @@ If a timestamp stored in SQLite has a fractional part longer than 6
|
||||||
numbers, its value will be truncated to microsecond precision by the
|
numbers, its value will be truncated to microsecond precision by the
|
||||||
timestamp converter.
|
timestamp converter.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
The default "timestamp" converter ignores UTC offsets in the database and
|
||||||
|
always returns a naive :class:`datetime.datetime` object. To preserve UTC
|
||||||
|
offsets in timestamps, either leave converters disabled, or register an
|
||||||
|
offset-aware converter with :func:`register_converter`.
|
||||||
|
|
||||||
.. _sqlite3-controlling-transactions:
|
.. _sqlite3-controlling-transactions:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue