Skip to content
Snippets Groups Projects
Commit bfb96d53 authored by Frédéric Guillot's avatar Frédéric Guillot
Browse files

Add workaround for parsing an invalid date

parent ad662507
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,7 @@ var dateFormats = []string{
"2006-01-02T15:04:05 -0700",
"2006-01-02T15:04:05:00",
"2006-01-02T15:04:05",
"2006-01-02T15:04",
"2006-01-02 at 15:04:05",
"2006-01-02 15:04:05Z",
"2006-01-02 15:04:05 MST",
......
......@@ -132,6 +132,7 @@ func TestParseWeirdDateFormat(t *testing.T) {
"March 30 2020 07:02:38 PM",
"Mon, 30 Mar 2020 19:53 +0000",
"Mon, 03/30/2020 - 19:19",
"2018-12-12T12:12",
}
for _, date := range dates {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment