You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
struct Model {
... (pk, other properties)...
pub timestamp: ChronoDateTimeWithTimeZone
}
Insert the following
Model { timestamp: DateTimeWithTimeZone::parse_from_rfc3339("2023-01-01 00:00:00+07:00").unwrap() }
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.
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
The text was updated successfully, but these errors were encountered: