From b3b90acee7a4bf6df07a6880b6a89edb856fa631 Mon Sep 17 00:00:00 2001 From: Nils Streijffert Date: Thu, 4 Feb 2021 16:49:06 +0100 Subject: [PATCH] Changed to fromSQL --- plugins/auth-backend/src/identity/DatabaseKeyStore.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/auth-backend/src/identity/DatabaseKeyStore.ts b/plugins/auth-backend/src/identity/DatabaseKeyStore.ts index b789522122..53c8bde307 100644 --- a/plugins/auth-backend/src/identity/DatabaseKeyStore.ts +++ b/plugins/auth-backend/src/identity/DatabaseKeyStore.ts @@ -66,9 +66,8 @@ export class DatabaseKeyStore implements KeyStore { return { items: rows.map(row => ({ key: JSON.parse(row.key), - createdAt: DateTime.fromFormat( + createdAt: DateTime.fromSQL( (row.created_at as unknown) as string, - 'yyyy-MM-dd HH:mm:ss', { zone: 'UTC', },