x
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package core
|
||||
|
||||
import "time"
|
||||
|
||||
var loc *time.Location
|
||||
|
||||
func initLoc() {
|
||||
var err error
|
||||
loc, err = time.LoadLocation("Asia/Shanghai")
|
||||
if err != nil {
|
||||
loc = time.FixedZone("CST", 8*3600)
|
||||
}
|
||||
time.Local = loc
|
||||
}
|
||||
Reference in New Issue
Block a user