diff --git a/test/e2e/api_keys_test.go b/test/e2e/api_keys_test.go index cac173dc..37e0a5ec 100644 --- a/test/e2e/api_keys_test.go +++ b/test/e2e/api_keys_test.go @@ -26,7 +26,7 @@ func CreateTestAPIKey(t *testing.T, client *client.Client, user *users.User) *us apiKey := users.NewAPIKey(internal.GetRandomName(), user.ID) require.NotNil(t, apiKey) - expiry := time.Now().Add(time.Hour) + expiry := time.Now().Add(time.Hour).UTC() apiKey.Expires = &expiry createdAPIKey, err := client.APIKeys.Create(apiKey)