Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

UTC-offset-aware converter for TIMESTAMP columns #52

Closed
iafisher opened this issue Oct 6, 2021 · 1 comment
Closed

UTC-offset-aware converter for TIMESTAMP columns #52

iafisher opened this issue Oct 6, 2021 · 1 comment

Comments

@iafisher
Copy link
Owner

iafisher commented Oct 6, 2021

If I'm okay with only supporting Python 3.7+, then it is as simple as:

sqlite3.register_converter("TIMESTAMP", datetime.datetime.fromisoformat)

Otherwise I will have to write my own ISO timestamp parser.

@iafisher
Copy link
Owner Author

Since auto_timestamp no longer includes UTC offsets, there doesn't seem to be much point to this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant