mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#18186: BlogPartArchive doesn't use correct date
Work Item: 18186 --HG-- branch : 1.x
This commit is contained in:
@@ -38,7 +38,7 @@ namespace Orchard.Blogs.Handlers {
|
||||
continue;
|
||||
|
||||
var commonPart = post.As<CommonPart>();
|
||||
var key = new DateTime(commonPart.PublishedUtc.Value.Year, commonPart.PublishedUtc.Value.Month, 1);
|
||||
var key = new DateTime(commonPart.CreatedUtc.Value.Year, commonPart.CreatedUtc.Value.Month, 1);
|
||||
|
||||
if (inMemoryBlogArchives.ContainsKey(key))
|
||||
inMemoryBlogArchives[key]++;
|
||||
|
||||
Reference in New Issue
Block a user