mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
- Fixing instances storing dates as local time instead of UTC. The overall time management strategy will be implemented when we come to localization...
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043005
This commit is contained in:
@@ -120,7 +120,7 @@ namespace Orchard.Comments.Controllers {
|
|||||||
}
|
}
|
||||||
Comment comment = new Comment {
|
Comment comment = new Comment {
|
||||||
Author = viewModel.Name,
|
Author = viewModel.Name,
|
||||||
CommentDate = DateTime.Now,
|
CommentDate = DateTime.UtcNow,
|
||||||
CommentText = viewModel.CommentText,
|
CommentText = viewModel.CommentText,
|
||||||
Email = viewModel.Email,
|
Email = viewModel.Email,
|
||||||
SiteName = viewModel.SiteName,
|
SiteName = viewModel.SiteName,
|
||||||
|
@@ -72,7 +72,7 @@
|
|||||||
<%= commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %> ...
|
<%= commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %> ...
|
||||||
<% } %>
|
<% } %>
|
||||||
</td>
|
</td>
|
||||||
<td><%= commentEntry.Comment.CommentDate %></td>
|
<td><%= commentEntry.Comment.CommentDate.ToLocalTime() %></td>
|
||||||
<td>
|
<td>
|
||||||
<%=Html.ActionLink("Edit", "Edit", new {commentEntry.Comment.Id}) %> |
|
<%=Html.ActionLink("Edit", "Edit", new {commentEntry.Comment.Id}) %> |
|
||||||
<%=Html.ActionLink("Delete", "Delete", new {id = commentEntry.Comment.Id, redirectToAction = "Details"}) %>
|
<%=Html.ActionLink("Delete", "Delete", new {id = commentEntry.Comment.Id, redirectToAction = "Details"}) %>
|
||||||
|
@@ -64,7 +64,7 @@
|
|||||||
<%= commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %> ...
|
<%= commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %> ...
|
||||||
<% } %>
|
<% } %>
|
||||||
</td>
|
</td>
|
||||||
<td><%= commentEntry.Comment.CommentDate %></td>
|
<td><%= commentEntry.Comment.CommentDate.ToLocalTime() %></td>
|
||||||
<td>
|
<td>
|
||||||
<%=Html.ActionLink(commentEntry.CommentedOn, "Details", new {id = commentEntry.Comment.CommentedOn}) %>
|
<%=Html.ActionLink(commentEntry.CommentedOn, "Details", new {id = commentEntry.Comment.CommentedOn}) %>
|
||||||
</td>
|
</td>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<%= comment.CommentText %>
|
<%= comment.CommentText %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Posted by <%= comment.UserName %> on <%= comment.CommentDate %>
|
Posted by <%= comment.UserName %> on <%= comment.CommentDate.ToLocalTime() %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%=Html.ActionLink("Delete", "Delete", new {Area="Orchard.Comments", Controller="Admin", id = comment.Id, returnUrl = Context.Request.Url}) %>
|
<%=Html.ActionLink("Delete", "Delete", new {Area="Orchard.Comments", Controller="Admin", id = comment.Id, returnUrl = Context.Request.Url}) %>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
<%= Html.Hidden("TaggedContentId", Model.ContentItem.Id) %>
|
<%= Html.Hidden("TaggedContentId", Model.ContentItem.Id) %>
|
||||||
<%= Html.Hidden("ReturnUrl", Context.Request.Url) %>
|
<%= Html.Hidden("ReturnUrl", Context.Request.Url) %>
|
||||||
|
|
||||||
<h3>Add a new tag</h3>
|
<h3>Add new tags</h3>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<input id="NewTagName" class="inputText inputTextLarge" name="NewTagName" type="text" value="" />
|
<input id="NewTagName" class="inputText inputTextLarge" name="NewTagName" type="text" value="" />
|
||||||
|
Reference in New Issue
Block a user