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 ExplainSQL does not display the time zone when displaying a time. The following times,
now := time.Now()
nowInPST := now.In(pst)
nowInEST := now.In(est)
are all equivalent. However, when you display the SQL, they will appear to be different.
What is saved in the database is correct; it's only what is in the ExplainSQL that doesn't work.
I added 2 time zones because one can pass if your computer is in that time zone.
I am in PST, so it works, but it will fail with the EST.
GORM Playground Link
go-gorm/playground#465
jsgoupil@95f5807
Description
The
ExplainSQL
does not display the time zone when displaying a time. The following times,are all equivalent. However, when you display the SQL, they will appear to be different.
What is saved in the database is correct; it's only what is in the
ExplainSQL
that doesn't work.I added 2 time zones because one can pass if your computer is in that time zone.
I am in PST, so it works, but it will fail with the EST.
The text was updated successfully, but these errors were encountered: