🐛 修复 Windows time.LoadLocation

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

No files matched your search

-10
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"`