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
With the database server configured for UTC as it's timezone, and the connection string configured as UTC as it's timezone, the retrieval of a GO time should have the time.Location set to UTC.
This works for mysql, sqlite.
It does not work for postgres.
There is a fix for this issue in pgx, but I can't see how to use it in gorm.
See the following two issues for discussions on the underlying cause of the issue.
GORM Playground Link
go-gorm/playground#790
Description
With the database server configured for UTC as it's timezone, and the connection string configured as UTC as it's timezone, the retrieval of a GO time should have the time.Location set to UTC.
This works for mysql, sqlite.
It does not work for postgres.
There is a fix for this issue in pgx, but I can't see how to use it in gorm.
See the following two issues for discussions on the underlying cause of the issue.
jackc/pgx#1945
jackc/pgx#2117 (comment)
The text was updated successfully, but these errors were encountered: