Skip to content

Commit b5ed5bd

Browse files
committed
Fix test
1 parent 94f4c3e commit b5ed5bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

integrations/repo_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"path"
1111
"strings"
1212
"testing"
13+
"time"
1314

1415
"code.gitea.io/gitea/modules/setting"
1516

@@ -72,13 +73,13 @@ func testViewRepo(t *testing.T) {
7273
fileName: "doc",
7374
commitID: "2a47ca4b614a9f5a43abbd5ad851a54a616ffee6",
7475
commitMsg: "init project",
75-
commitTime: "Wed, 14 Jun 2017 21:54:21 CST",
76+
commitTime: time.Date(2017, time.June, 14, 13, 54, 21, 0, time.UTC).Format(time.RFC1123),
7677
},
7778
{
7879
fileName: "README.md",
7980
commitID: "2a47ca4b614a9f5a43abbd5ad851a54a616ffee6",
8081
commitMsg: "init project",
81-
commitTime: "Wed, 14 Jun 2017 21:54:21 CST",
82+
commitTime: time.Date(2017, time.June, 14, 13, 54, 21, 0, time.UTC).Format(time.RFC1123),
8283
},
8384
}, items)
8485
}

0 commit comments

Comments
 (0)