1
0
Fork 0
mirror of https://github.com/sbrl/PolyFeed.git synced 2024-11-14 05:13:00 +00:00

Use the publish date for the lastupdated if available

This commit is contained in:
Starbeamrainbowlabs 2019-08-05 00:44:59 +01:00
parent cb4e730f98
commit 132322801c
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -118,6 +118,8 @@ namespace PolyFeed
)
);
}
else if (source.Entries.Published != null) // Use the publish date if available
nextItem.LastUpdated = nextItem.Published;
else // It requires one, apparently
nextItem.LastUpdated = DateTimeOffset.Now;