mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-05 00:50:21 +00:00
🐛 修复 Windows time.LoadLocation
This commit is contained in:
1 parent
a90c0400d9
commit
2c404b76a1
3 files changed
+12
-13
No files matched your search
@@ -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"`
|
||||
|
||||
Reference in new issue
Block a user