From 529c8501b822aa14ddef4d44a75cf3f2f75f900d Mon Sep 17 00:00:00 2001 From: Nils Streijffert Date: Mon, 8 Feb 2021 09:51:57 +0100 Subject: [PATCH] Create utc DateTime object directly --- plugins/auth-backend/src/identity/MemoryKeyStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/auth-backend/src/identity/MemoryKeyStore.ts b/plugins/auth-backend/src/identity/MemoryKeyStore.ts index 0903f6987d..ecb31d9998 100644 --- a/plugins/auth-backend/src/identity/MemoryKeyStore.ts +++ b/plugins/auth-backend/src/identity/MemoryKeyStore.ts @@ -25,7 +25,7 @@ export class MemoryKeyStore implements KeyStore { async addKey(key: AnyJWK): Promise { this.keys.set(key.kid, { - createdAt: DateTime.local().toUTC(), + createdAt: DateTime.utc(), key: JSON.stringify(key), }); }