Changed to fromSQL

This commit is contained in:
Nils Streijffert
2021-02-04 16:49:06 +01:00
parent a816fd2f33
commit b3b90acee7
@@ -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',
},