summaryrefslogtreecommitdiffstats
path: root/integrations/repo_test.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-02-25 04:05:00 +0100
committerGitHub <noreply@github.com>2020-02-25 11:05:00 +0800
commitdc88b786e930bed84b5b0d91f459020fd2a2e729 (patch)
treea03cbab33c8bb55ee8d09afe03bd707b88a9459d /integrations/repo_test.go
parent6baa07ddf3a6940aa25b0c9986370078004140d2 (diff)
downloadgitea-dc88b786e930bed84b5b0d91f459020fd2a2e729.tar.gz
gitea-dc88b786e930bed84b5b0d91f459020fd2a2e729.zip
Use local timezone to compare (#10446)
Diffstat (limited to 'integrations/repo_test.go')
-rw-r--r--integrations/repo_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/integrations/repo_test.go b/integrations/repo_test.go
index 485b77c00f..93f9e7de4b 100644
--- a/integrations/repo_test.go
+++ b/integrations/repo_test.go
@@ -68,18 +68,19 @@ func testViewRepo(t *testing.T) {
items = append(items, f)
})
+ commitT := time.Date(2017, time.June, 14, 13, 54, 21, 0, time.UTC).In(time.Local).Format(time.RFC1123)
assert.EqualValues(t, []file{
{
fileName: "doc",
commitID: "2a47ca4b614a9f5a43abbd5ad851a54a616ffee6",
commitMsg: "init project",
- commitTime: time.Date(2017, time.June, 14, 13, 54, 21, 0, time.UTC).Format(time.RFC1123),
+ commitTime: commitT,
},
{
fileName: "README.md",
commitID: "2a47ca4b614a9f5a43abbd5ad851a54a616ffee6",
commitMsg: "init project",
- commitTime: time.Date(2017, time.June, 14, 13, 54, 21, 0, time.UTC).Format(time.RFC1123),
+ commitTime: commitT,
},
}, items)
}