1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-02 16:38:37 +00:00

Use preferably the published date for Atom feeds

YouTube feeds use the published date for the original creation date.
This commit is contained in:
Frédéric Guillot 2019-01-29 20:01:36 -08:00
parent c71681b197
commit ed6ae7e0d2
2 changed files with 7 additions and 3 deletions

View file

@ -546,7 +546,7 @@ func TestParseEntryWithPublishedAndUpdated(t *testing.T) {
t.Error(err)
}
if !feed.Entries[0].Date.Equal(time.Date(2003, time.December, 13, 18, 30, 2, 0, time.UTC)) {
if !feed.Entries[0].Date.Equal(time.Date(2002, time.November, 12, 18, 30, 2, 0, time.UTC)) {
t.Errorf("Incorrect entry date, got: %v", feed.Entries[0].Date)
}
}