提交 7dfefedf 编写于 作者: U UlricQin

fix time location parse

上级 48ce07ea
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册