1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

fix(date-parser): failed to parse date "Fri, 31 Mar 2023 20:19:00 America/Los_Angeles" by adding timezone to invalidTimezoneReplacer

test(date-parser): add TestParseRSSDateTimezone unit test
This commit is contained in:
Jean Khawand 2023-07-31 20:36:21 +02:00 committed by Frédéric Guillot
parent 31538c57a4
commit da0198cc0d
2 changed files with 30 additions and 0 deletions

View file

@ -223,6 +223,7 @@ var dateFormats = []string{
var invalidTimezoneReplacer = strings.NewReplacer(
"Europe/Brussels", "CET",
"America/Los_Angeles", "PDT",
"GMT+0000 (Coordinated Universal Time)", "GMT",
"GMT-", "GMT -",
)