fix time location parse

This commit is contained in:
UlricQin 2020-06-01 16:26:41 +08:00
parent 48ce07eaa1
commit 7dfefedf77
1 changed files with 2 additions and 1 deletions

View File

@ -224,7 +224,8 @@ func (w *Worker) producer(line string, strategy *stra.Strategy) (*AnalysPoint, e
t = reg.ReplaceAllString(t, rep)
}
tms, err := time.Parse(timeFormat, t)
loc, err := time.LoadLocation("Local")
tms, err := time.ParseInLocation(timeFormat, t, loc)
if err != nil {
return nil, err
}