mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
bbgo: add shared local time zone
This commit is contained in:
parent
e23c459697
commit
e276ddd38a
15
pkg/bbgo/time.go
Normal file
15
pkg/bbgo/time.go
Normal 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)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user