- Fixing the date shown for comments in the admin views (using the datetime htmlhelper to show date for the comments).

--HG--
branch : dev
This commit is contained in:
Suha Can
2010-03-04 16:26:58 -08:00
parent 6fc40f821c
commit f546d4451b
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@
<%=Html.Encode(commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText) %><%=_Encoded(" ...") %>
<% } %>
</td>
<td><%=commentEntry.Comment.CommentDateUtc.GetValueOrDefault().ToLocalTime() %></td>
<td><%=Html.DateTime(commentEntry.Comment.CommentDateUtc.GetValueOrDefault()) %></td>
<td>
<ul class="actions">
<li class="construct">

View File

@@ -67,7 +67,7 @@
<%=Html.Encode(commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText) %><%=_Encoded(" ...") %>
<% } %>
</td>
<td><%=commentEntry.Comment.CommentDateUtc.GetValueOrDefault().ToLocalTime() %></td>
<td><%=Html.DateTime(commentEntry.Comment.CommentDateUtc.GetValueOrDefault()) %></td>
<td><%=Html.ActionLink(commentEntry.CommentedOn, "Details", new { id = commentEntry.Comment.CommentedOn }) %></td>
<td>
<ul class="actions">