未验证 提交 1972d89e 编写于 作者: H halleyshx 提交者: GitHub

fix bug of time parse by CleanupTestDatabase (#294)

Co-authored-by: Nshihuixing <shihuixing@jd.com>
上级 dfe6fba5
......@@ -172,7 +172,7 @@ func (vEnv *VirtualEnv) CleanupTestDatabase() {
continue
}
s := strings.Split(testDatabase, "_")
pastTime, err := time.Parse("060102150405", s[1])
pastTime, err := time.ParseInLocation("060102150405", s[1], time.Local)
if err != nil {
common.Log.Error("CleanupTestDatabase compute pastTime Error: %s", err.Error())
continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册