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

Handle more date formats

This commit is contained in:
Frédéric Guillot 2018-01-03 18:59:29 -08:00
parent 462b4a2642
commit efac11e082
2 changed files with 6 additions and 0 deletions

View file

@ -203,6 +203,11 @@ func Parse(ds string) (t time.Time, err error) {
}
}
lastSpace := strings.LastIndex(ds, " ")
if lastSpace > 0 {
return Parse(ds[0:lastSpace])
}
err = fmt.Errorf(`date parser: failed to parse date "%s"`, ds)
return
}