upvote
But SQLite does not have a native datetime type so you have to use strings
reply
You can use an integer
reply
How do I know the time zone of an integer? Sure there are plenty of cases where one doesn't care, but there are also many cases where the original time zone is important.
reply
The integer is a UTC time so it can be sorted. If you need the time zone you store than in a smaller field.
reply
other comment said it already, timezone information is not saved. Easiest is just to use a string.
reply
But also one of the recommended ways of doing it, as it has no native Datetime type.
reply