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
The string(s) value at this time is 2024-10-11 10:00:00. Because the parseTs parameter does not contain a time zone, the time zone of the parsed time.Time is UTC, but the time zone of this date should be the database time zone PRC.
This will cause all calculations about this time to be wrong.
How should I solve this problem?
The text was updated successfully, but these errors were encountered:
There is such a database table
and go structure
Then, the time zone of the database configuration is
PRC
, and the local time zone of the go program isPRC
https://github.com/lib/pq/blob/master/encode.go#L109
The string(s) value at this time is 2024-10-11 10:00:00. Because the parseTs parameter does not contain a time zone, the time zone of the parsed time.Time is
UTC
, but the time zone of this date should be the database time zonePRC
.This will cause all calculations about this time to be wrong.
How should I solve this problem?
The text was updated successfully, but these errors were encountered: