From d8f379defa9d2fc21d73f2fddc476159336e36b7 Mon Sep 17 00:00:00 2001 From: R22627 Date: Tue, 14 Nov 2023 09:00:00 +0800 Subject: [PATCH] test: modify the time test case --- time/time_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/time/time_test.go b/time/time_test.go index c49214b..a12b094 100644 --- a/time/time_test.go +++ b/time/time_test.go @@ -204,7 +204,7 @@ func TestGetBeijingTime(t *testing.T) { got, err := GetBeijingTime(time.DateTime, "2022-11-04 08:30:00") assert.IsNil(err) - assert.Equal("2022-11-04 08:30:00", got.Format(time.DateTime)) + assert.Equal("2022-11-04T08:30:00+08:00", got.Format(time.RFC3339)) _, err = GetBeijingTime(time.RFC3339, "2022-11-04 08:30:00") assert.IsNotNil(err)