Handle invalid French date
This commit is contained in:
parent
f722fd1208
commit
1908c84fbe
2 changed files with 2 additions and 0 deletions
|
@ -264,6 +264,7 @@ var invalidLocalizedDateReplacer = strings.NewReplacer(
|
|||
"oct.", "October",
|
||||
"nov.", "November",
|
||||
"dec.", "December",
|
||||
"déc.", "December",
|
||||
"janvier ", "January ",
|
||||
"février ", "February ",
|
||||
"mars ", "March ",
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue