Skip to content

Commit

Permalink
test: modify the time test case
Browse files Browse the repository at this point in the history
  • Loading branch information
R22627 authored and R22627 committed Nov 14, 2023
1 parent f04a1bf commit d8f379d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion time/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d8f379d

Please sign in to comment.