🚸 调整展示时间 timezone

This commit is contained in:
naiba committed 2022-03-01 10:19:23 +08:00
1 parent 41ba57637f
commit 4dc51c403e
8 files changed
+62 -37

No files matched your search

+10
View File
@@ -6,6 +6,16 @@ const CtxKeyAuthorizedUser = "ckau"
const CacheKeyOauth2State = "p:a:state"
var Loc *time.Location
func init() {
var err error
Loc, err = time.LoadLocation("Asia/Shanghai")
if err != nil {
panic(err)
}
}
type Common struct {
ID uint64 `gorm:"primary_key"`
CreatedAt time.Time `sql:"index"`