Files
Orchard/src/Orchard.Web/Modules/Orchard.Comments/Views/CommentMetadata.cshtml
Sebastien Ros 3e973837ab Fixing datetime format in comments.
zzz is not valid for UTC values, Z is expected instead
2013-08-22 12:29:41 -07:00

6 lines
423 B
Plaintext

@using Orchard.Comments.Models
@{
CommentPart comment = Model.ContentPart;
}
@T("said") <time datetime="@comment.CommentDateUtc.GetValueOrDefault().ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ")">@Html.Link((string)Display.DateTimeRelative(dateTimeUtc: comment.CommentDateUtc.GetValueOrDefault()).ToString(), @Url.RouteUrl(comment.CommentedOnContentItemMetadata.DisplayRouteValues) + "#comment-" + comment.Id)</time>