bbgo: add shared local time zone

This commit is contained in:
c9s 2021-06-09 23:51:20 +08:00
parent e23c459697
commit e276ddd38a

15
pkg/bbgo/time.go Normal file
View File

@ -0,0 +1,15 @@
package bbgo
import (
"time"
)
var LocalTimeZone *time.Location
func init() {
var err error
LocalTimeZone, err = time.LoadLocation("Local")
if err != nil {
panic(err)
}
}