ssg: StaticSitePostFrontMatter: set DatePublishedOverride on SaveToBlogPost to make date posted visible in UI

This commit is contained in:
Nick Vella 2019-07-19 01:27:19 +10:00
parent b9287e65a4
commit 51a001841d
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ namespace OpenLiveWriter.BlogClient.Clients.StaticSite
post.Id = Id;
post.Title = Title;
post.Categories = Tags?.Select(t => new BlogPostCategory(t)).ToArray();
try { post.DatePublished = DateTime.Parse(Date).ToLocalTime(); } catch { }
try { post.DatePublished = post.DatePublishedOverride = DateTime.Parse(Date).ToLocalTime(); } catch { }
post.IsPage = Layout == "page";
}