diff --git a/tests/integration/repo_test.go b/tests/integration/repo_test.go index 83cbaa178..840a43b5e 100644 --- a/tests/integration/repo_test.go +++ b/tests/integration/repo_test.go @@ -78,7 +78,7 @@ func testViewRepo(t *testing.T) { // convert "2017-06-14 21:54:21 +0800" to "Wed, 14 Jun 2017 13:54:21 UTC" htmlTimeString, _ := s.Find("relative-time.time-since").Attr("datetime") htmlTime, _ := time.Parse(time.RFC3339, htmlTimeString) - f.commitTime = htmlTime.UTC().Format("Mon, 02 Jan 2006 15:04:05 UTC") + f.commitTime = htmlTime.In(time.Local).Format(time.RFC1123) items = append(items, f) })