#18186: BlogPartArchive doesn't use correct date

Work Item: 18186

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-11-09 18:12:53 -08:00
parent ec97e95221
commit 355f379e80
@@ -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]++;