mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 21:13:35 +08:00
#18065: Fixing date handling in Live Writer
Work Item: 18065 --HG-- branch : 1.x
This commit is contained in:
@@ -51,8 +51,8 @@ namespace Orchard.Core.Feeds.StandardBuilders {
|
||||
|
||||
public DateTime? PublishedUtc {
|
||||
get {
|
||||
if (_common != null && _common.PublishedUtc != null)
|
||||
return _common.PublishedUtc;
|
||||
if (_common != null && _common.CreatedUtc != null)
|
||||
return _common.CreatedUtc;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
@@ -62,7 +62,7 @@ namespace Orchard.Core.Feeds.StandardQueries {
|
||||
|
||||
var items = _contentManager.Query()
|
||||
.Where<CommonPartRecord>(x => x.Container == container.Record)
|
||||
.OrderByDescending(x => x.PublishedUtc)
|
||||
.OrderByDescending(x => x.CreatedUtc)
|
||||
.Slice(0, limit);
|
||||
|
||||
foreach (var item in items) {
|
||||
|
Reference in New Issue
Block a user