Set times to utc when reading from database

This commit is contained in:
Tulir Asokan
2023-05-06 22:59:32 +03:00
parent 102b1510f8
commit 8100386f88
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ func (up UserPortal) Scan(l log.Logger, row dbutil.Scannable) *UserPortal {
l.Errorln("Error scanning user portal:", err)
panic(err)
}
up.Timestamp = time.UnixMilli(ts)
up.Timestamp = time.UnixMilli(ts).UTC()
return &up
}