From 3ffc4ac8326ce2eb50132de3dfeb8d1067fbc0b0 Mon Sep 17 00:00:00 2001 From: stk Date: Sat, 2 May 2026 17:37:14 +0200 Subject: [PATCH] Remove now unnecessary Setenv call The call was meant to guarantee a UTC time zone to make the tests deterministic, but as the previous commit explained, this only worked on Mac and Linux, not on Windows. Since we now have a better fix, this workaround is no longer needed. --- pkg/gui/presentation/commits_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/gui/presentation/commits_test.go b/pkg/gui/presentation/commits_test.go index 1536d420a..972413e7b 100644 --- a/pkg/gui/presentation/commits_test.go +++ b/pkg/gui/presentation/commits_test.go @@ -1,7 +1,6 @@ package presentation import ( - "os" "strings" "testing" "time" @@ -531,8 +530,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) { oldColorLevel := color.ForceSetColorLevel(terminfo.ColorLevelNone) defer color.ForceSetColorLevel(oldColorLevel) - os.Setenv("TZ", "UTC") - focusing := false for _, scenario := range scenarios { if scenario.focus {