Merge pull request #4530 from backstage/rugvip/datefix

auth-backend: fix key timestamp parsing with sqlite
This commit is contained in:
Patrik Oldsberg
2021-02-15 13:13:37 +01:00
committed by GitHub
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) {