Handle invalid French date

This commit is contained in:
Frédéric Guillot 2020-12-02 20:59:14 -08:00
parent f722fd1208
commit 1908c84fbe
2 changed files with 2 additions and 0 deletions

View file

@ -264,6 +264,7 @@ var invalidLocalizedDateReplacer = strings.NewReplacer(
"oct.", "October",
"nov.", "November",
"dec.", "December",
"déc.", "December",
"janvier ", "January ",
"février ", "February ",
"mars ", "March ",

View file

@ -149,6 +149,7 @@ func TestParseWeirdDateFormat(t *testing.T) {
"Jan. 4, 2016, 12:37 p.m.",
"2018-10-23 04:07:42 +00:00",
"5 August, 2019",
"mar., 01 déc. 2020 16:11:02 +0000",
}
for _, date := range dates {