1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Handle more invalid dates

This commit is contained in:
Frédéric Guillot 2020-11-17 17:01:59 -08:00
parent a108cb7808
commit b1c9977711
3 changed files with 35 additions and 11 deletions

View file

@ -143,6 +143,12 @@ func TestParseWeirdDateFormat(t *testing.T) {
"Mon, 16th Nov 2020 13:16:28 GMT",
"Nov. 2020",
"ven., 03 juil. 2020 15:09:58 +0000",
"Fri, 26/06/2020",
"Thu, 29 Oct 2020 07:36:03 GMT-07:00",
"jeu., 02 avril 2020 00:00:00 +0200",
"Jan. 4, 2016, 12:37 p.m.",
"2018-10-23 04:07:42 +00:00",
"5 August, 2019",
}
for _, date := range dates {