diff --git a/src/Orchard.Web/Core/Common/Shapes.cs b/src/Orchard.Web/Core/Common/Shapes.cs index 29d2f2fab..8578af9d0 100644 --- a/src/Orchard.Web/Core/Common/Shapes.cs +++ b/src/Orchard.Web/Core/Common/Shapes.cs @@ -23,12 +23,12 @@ namespace Orchard.Core.Common { } [Shape] - public IHtmlString PublishedState(dynamic Display, DateTime createdDateTimeUtc, DateTime? publisheddateTimeUtc) { + public IHtmlString PublishedState(dynamic Display, DateTime createdDateTimeUtc, DateTime? publisheddateTimeUtc, LocalizedString customDateFormat) { if (!publisheddateTimeUtc.HasValue) { return T("Draft"); } - return Display.DateTime(DateTimeUtc: createdDateTimeUtc); + return Display.DateTime(DateTimeUtc: createdDateTimeUtc, CustomFormat: customDateFormat); } [Shape]