diff --git a/pkg/cmd/helpers_test.go b/pkg/cmd/helpers_test.go index 08065499e..e4b344a1e 100644 --- a/pkg/cmd/helpers_test.go +++ b/pkg/cmd/helpers_test.go @@ -49,6 +49,8 @@ func init() { func runTestCmd(t *testing.T, tests []cmdTestCase) { t.Helper() + t.Setenv("TZ", "UTC") + time.Local = time.UTC for _, tt := range tests { for i := 0; i <= tt.repeat; i++ { t.Run(tt.name, func(t *testing.T) {