We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f72f0ee commit a4c692fCopy full SHA for a4c692f
internal/models/sessions.go
@@ -103,6 +103,10 @@ func (s *Session) LastRefreshedAt(refreshTokenTime *time.Time) time.Time {
103
}
104
105
func (s *Session) UpdateOnlyRefreshInfo(tx *storage.Connection) error {
106
+ // TODO(kangmingtay): The underlying database type uses timestamp without timezone,
107
+ // so we need to convert the value to UTC before updating it.
108
+ // In the future, we should add a migration to update the type to contain the timezone.
109
+ *s.RefreshedAt = s.RefreshedAt.UTC()
110
return tx.UpdateOnly(s, "refreshed_at", "user_agent", "ip")
111
112
0 commit comments