1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-27 17:28:38 +00:00

Improve date parser to handle various broken date formats

This commit is contained in:
Frédéric Guillot 2023-06-24 15:21:09 -07:00
parent 30d4b8986a
commit b13c7e328a
2 changed files with 14 additions and 0 deletions

View file

@ -179,6 +179,12 @@ func TestParseWeirdDateFormat(t *testing.T) {
"mar., 01 déc. 2020 16:11:02 +0000",
"Thurs, 15 Oct 2020 00:00:39 +0000",
"Thur, 19 Nov 2020 00:00:39 +0000",
"26 Sep 2022 GMT",
"Thu, June 22, 2023 at 01:11 PM EDT",
"Apr 16, 2023 08:01 GMT",
"Jun 23, 2023 19:00 GMT",
"09/15/2014 4:20 pm PST",
"Fri, 23rd Jun 2023 09:32:20 GMT",
}
for _, date := range dates {