From d21032d8ca695dd25797161a7e31c8cff933650a Mon Sep 17 00:00:00 2001 From: ttyS3 Date: Tue, 30 May 2023 20:43:17 +0800 Subject: [PATCH] Revert "test: rollback to use env default TZ variable" This reverts commit e61dab48becc7a561b395e5de8e31c15be7093be. --- baselib_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/baselib_test.go b/baselib_test.go index 7c78ed9e..ba773343 100644 --- a/baselib_test.go +++ b/baselib_test.go @@ -7,6 +7,7 @@ import ( ) func TestOsDateFormatUTCWithTwoParam(t *testing.T) { + t.Setenv("TZ", "Asia/Tokyo") ls := NewState() g := ls.GetGlobal("os") @@ -81,6 +82,7 @@ func TestOsDateFormatUTCWithTwoParam(t *testing.T) { } func TestOsDateFormatLocalWithTwoParam(t *testing.T) { + t.Setenv("TZ", "Asia/Tokyo") ls := NewState() g := ls.GetGlobal("os")