Unverified Commit e0901410 authored by Steven Zou's avatar Steven Zou Committed by GitHub
Browse files

Merge pull request #9381 from beautytiger/dev-191011-fixtime

fix wrong time parse by wrong year representation
parents ee9e92b6 bea8609a
......@@ -185,8 +185,8 @@ func TestExecutionFill(t *testing.T) {
StartTime: time.Now(),
}
executionID, _ := AddExecution(execution)
et1, _ := time.Parse("2016-01-02 15:04:05", "2019-03-21 08:01:01")
et2, _ := time.Parse("2016-01-02 15:04:05", "2019-04-01 10:11:53")
et1, _ := time.Parse("2006-01-02 15:04:05", "2019-03-21 08:01:01")
et2, _ := time.Parse("2006-01-02 15:04:05", "2019-04-01 10:11:53")
task1 := &models.Task{
ID: 20191,
ExecutionID: executionID,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment