From 17c860e97d32e73515d0adbb1fcc24b24d1c046c Mon Sep 17 00:00:00 2001 From: badhezi Date: Wed, 14 May 2025 12:22:35 +0300 Subject: [PATCH] fix timezone adjustment in TestCompareRawDiffPatch --- tests/integration/compare_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/compare_test.go b/tests/integration/compare_test.go index 634a6b5652..6aefbd0e40 100644 --- a/tests/integration/compare_test.go +++ b/tests/integration/compare_test.go @@ -228,7 +228,7 @@ func TestCompareRawDiffPatch(t *testing.T) { respTs = respTs.In(time.Local) // Format the timestamp to match the expected format in the patch - customFormat := "Mon, 02 Jan 2006 15:04:05" + customFormat := "Mon, 02 Jan 2006 15:04:05 -0700" respTsStr := respTs.Format(customFormat) req := NewRequest(t, "GET", fmt.Sprintf("/user1/test_raw_diff/compare/%s...%s.patch", oldRef.ID.String(), newRef.ID.String())) @@ -236,7 +236,7 @@ func TestCompareRawDiffPatch(t *testing.T) { expected := fmt.Sprintf(`From %s Mon Sep 17 00:00:00 2001 From: User One -Date: %s +0300 +Date: %s Subject: [PATCH] Update README.md ---