🐛 修复 Windows time.LoadLocation

This commit is contained in:
naiba
2022-03-18 23:45:03 +08:00
parent 3ca23d8d88
commit d73ceaaaa5
3 changed files with 12 additions and 13 deletions

View File

@@ -6,16 +6,6 @@ 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"`