diff --git a/src/Orchard.Web/Themes/Contoso/Views/DisplayTemplates/ListOfComments.ascx b/src/Orchard.Web/Themes/Contoso/Views/DisplayTemplates/ListOfComments.ascx index d60142fe4..10fca431e 100644 --- a/src/Orchard.Web/Themes/Contoso/Views/DisplayTemplates/ListOfComments.ascx +++ b/src/Orchard.Web/Themes/Contoso/Views/DisplayTemplates/ListOfComments.ascx @@ -6,7 +6,7 @@ foreach (var comment in Model) { %>
<%=Html.LinkOrDefault(Html.Encode(comment.Record.UserName), Html.Encode(comment.Record.SiteName), new { rel = "nofollow" })%> <%-- todo: (heskew) need comment permalink --%> - said <%=Html.Link(Html.DateTimeRelative(comment.Record.CommentDateUtc), "#")%> + said <%=Html.Link(Html.DateTimeRelative(comment.Record.CommentDateUtc.GetValueOrDefault()), "#")%>
<%-- todo: (heskew) comment text needs processing depending on comment markup style --%>