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:
parent
462b4a2642
commit
efac11e082
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue