From f18011d75e42f692a5c8eaa848430eca4bc2371e Mon Sep 17 00:00:00 2001 From: Nick Vella Date: Sun, 21 Jul 2019 01:32:10 +1000 Subject: [PATCH] ssg: StaticSitePost: use DatePublished from item for GetFileNameForProvidedSlug --- .../Clients/StaticSite/StaticSitePost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managed/OpenLiveWriter.BlogClient/Clients/StaticSite/StaticSitePost.cs b/src/managed/OpenLiveWriter.BlogClient/Clients/StaticSite/StaticSitePost.cs index b63cb705..5c6fb80f 100644 --- a/src/managed/OpenLiveWriter.BlogClient/Clients/StaticSite/StaticSitePost.cs +++ b/src/managed/OpenLiveWriter.BlogClient/Clients/StaticSite/StaticSitePost.cs @@ -71,7 +71,7 @@ namespace OpenLiveWriter.BlogClient.Clients.StaticSite /// File name with prepended date protected override string GetFileNameForProvidedSlug(string slug) { - return $"{BlogPost.DatePublished.ToString("yyyy-MM-dd")}-{slug}{PUBLISH_FILE_EXTENSION}"; + return $"{DatePublished.ToString("yyyy-MM-dd")}-{slug}{PUBLISH_FILE_EXTENSION}"; } ///