You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
208 B
14 lines
208 B
package constant
|
|
|
|
import "time"
|
|
|
|
const Loc = "Asia/Shanghai"
|
|
|
|
func GetLocalZone() (location *time.Location) {
|
|
var err error
|
|
location, err = time.LoadLocation(Loc)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return
|
|
}
|