Open pierre-wehbe opened 2 months ago
Note: It might be related to a sqlx problem. I opened a PR over there in case you guys can help take it to the finish line. https://github.com/launchbadge/sqlx/pull/3411
-- Update: That PR doesn't seem to solve the issue unfortunately
Description
After successfully saving a timestamp of type ChronoDateTimeWithTimeZone to my SQLite and Postgres DB with timezone offset information (eg: 2023-01-01 00:00:00+07:00), the timezone offset information (+07:00) is lost on read. I get "2022-12-31T17:00:00+00:00"
Steps to Reproduce
Insert the following
The read the value after insertion
Expected Behavior
Should get
"2023-01-01 00:00:00+07:00"
Actual Behavior
Getting
"2022-12-31T17:00:00+00:00"
Reproduces How Often
Always reproducible
My guess is that TryGetable is not implemented to read non-UTC timezone offset.
Versions