From 21f2cb78fe274d0cb34733cd99afd6b4913c7881 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 24 Feb 2020 19:26:05 +0100 Subject: [PATCH] Use local timezone to compare --- integrations/repo_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integrations/repo_test.go b/integrations/repo_test.go index 485b77c00f2a..93f9e7de4b88 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) }