fix time location

This commit is contained in:
Pascal Fischer 2024-11-28 19:06:55 +01:00
parent e4bdb1e757
commit 0149e751ce

View File

@ -681,7 +681,7 @@ func Test_SetupKeys_Get(t *testing.T) {
Revoked: false,
State: "valid",
Type: "one-off",
UpdatedAt: time.Date(2021, time.August, 19, 20, 46, 20, 5936822, time.Local),
UpdatedAt: time.Date(2021, time.August, 19, 18, 46, 20, 5936822, time.UTC),
UsageLimit: 1,
UsedTimes: 0,
Valid: true,
@ -704,7 +704,7 @@ func Test_SetupKeys_Get(t *testing.T) {
Revoked: false,
State: "expired",
Type: "reusable",
UpdatedAt: time.Date(2021, time.August, 19, 20, 46, 20, 5936822, time.Local),
UpdatedAt: time.Date(2021, time.August, 19, 18, 46, 20, 5936822, time.UTC),
UsageLimit: 5,
UsedTimes: 1,
Valid: false,
@ -727,7 +727,7 @@ func Test_SetupKeys_Get(t *testing.T) {
Revoked: true,
State: "revoked",
Type: "reusable",
UpdatedAt: time.Date(2021, time.August, 19, 20, 46, 20, 5936822, time.Local),
UpdatedAt: time.Date(2021, time.August, 19, 18, 46, 20, 5936822, time.UTC),
UsageLimit: 3,
UsedTimes: 0,
Valid: false,
@ -854,7 +854,7 @@ func Test_SetupKeys_GetAll(t *testing.T) {
Revoked: false,
State: "valid",
Type: "one-off",
UpdatedAt: time.Date(2021, time.August, 19, 20, 46, 20, 5936822, time.Local),
UpdatedAt: time.Date(2021, time.August, 19, 18, 46, 20, 5936822, time.UTC),
UsageLimit: 1,
UsedTimes: 0,
Valid: true,
@ -870,7 +870,7 @@ func Test_SetupKeys_GetAll(t *testing.T) {
Revoked: true,
State: "revoked",
Type: "reusable",
UpdatedAt: time.Date(2021, time.August, 19, 20, 46, 20, 5936822, time.Local),
UpdatedAt: time.Date(2021, time.August, 19, 18, 46, 20, 5936822, time.UTC),
UsageLimit: 3,
UsedTimes: 0,
Valid: false,
@ -886,7 +886,7 @@ func Test_SetupKeys_GetAll(t *testing.T) {
Revoked: false,
State: "expired",
Type: "reusable",
UpdatedAt: time.Date(2021, time.August, 19, 20, 46, 20, 5936822, time.Local),
UpdatedAt: time.Date(2021, time.August, 19, 18, 46, 20, 5936822, time.UTC),
UsageLimit: 5,
UsedTimes: 1,
Valid: false,
@ -1017,7 +1017,7 @@ func Test_SetupKeys_Delete(t *testing.T) {
Revoked: false,
State: "valid",
Type: "one-off",
UpdatedAt: time.Date(2021, time.August, 19, 20, 46, 20, 5936822, time.Local),
UpdatedAt: time.Date(2021, time.August, 19, 20, 46, 20, 5936822, time.UTC),
UsageLimit: 1,
UsedTimes: 0,
Valid: true,
@ -1040,7 +1040,7 @@ func Test_SetupKeys_Delete(t *testing.T) {
Revoked: false,
State: "expired",
Type: "reusable",
UpdatedAt: time.Date(2021, time.August, 19, 20, 46, 20, 5936822, time.Local),
UpdatedAt: time.Date(2021, time.August, 19, 20, 46, 20, 5936822, time.UTC),
UsageLimit: 5,
UsedTimes: 1,
Valid: false,
@ -1063,7 +1063,7 @@ func Test_SetupKeys_Delete(t *testing.T) {
Revoked: true,
State: "revoked",
Type: "reusable",
UpdatedAt: time.Date(2021, time.August, 19, 20, 46, 20, 5936822, time.Local),
UpdatedAt: time.Date(2021, time.August, 19, 20, 46, 20, 5936822, time.UTC),
UsageLimit: 3,
UsedTimes: 0,
Valid: false,