auth-backend: fix key timestamp parsing with sqlite

This commit is contained in:
Patrik Oldsberg
2021-02-14 20:00:15 +01:00
parent 536dd3f9ce
commit d9687c524f
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-auth-backend': patch
---
Fixed parsing of OIDC key timestamps when using SQLite.
@@ -39,7 +39,7 @@ type Options = {
const parseDate = (date: string | Date) => {
const parsedDate =
typeof date === 'string'
? DateTime.fromSQL(date, { locale: 'UTC' })
? DateTime.fromSQL(date, { zone: 'UTC' })
: DateTime.fromJSDate(date);
if (!parsedDate.isValid) {