mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
Update date.ts
[ci skip]
This commit is contained in:
parent
0bdc132dcf
commit
9ed6c78466
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// see https://github.com/dateutil/dateutil/issues/878 , JS Date does not
|
||||
// seem to accept these strings as valid dates so we must normalize offset
|
||||
export function normalizeDateStr(dateStr: string): string {
|
||||
return dateStr.replace(/-(\d\d):\d\d:\d\d/gm, `-$1:00`)
|
||||
return dateStr.replace(/[\+-](\d\d):\d\d:\d\d/gm, `-$1:00`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue