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