Skip to content

Commit 8a41f8c

Browse files
committed
Display version history using local timezone
The version data is still stored in UTC, but is now _displayed_ in the browser's local timezone.
1 parent 9c46d74 commit 8a41f8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.Editor.AspNetCore/Areas/Editor/Views/Shared/_Toolbar.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<ul class="dropdown-menu" role="menu" aria-labelledby="VersionsButton">
2121
@foreach (DateTime version in Model.Topic.VersionHistory) {
2222
<li role="presentation" class="small">
23-
<a tabindex="-1" role="menuitem" href="@Url.Action("SetVersion", "Editor", new { path=Model.Topic.WebPath, version=version.ToString("MM/dd/yyyy hh:mm:ss.fff tt"), isModal=Model.IsModal })">@version.ToString()</a>
23+
<a tabindex="-1" role="menuitem" href="@Url.Action("SetVersion", "Editor", new { path=Model.Topic.WebPath, version=version.ToString("MM/dd/yyyy hh:mm:ss.fff tt"), isModal=Model.IsModal })">@version.ToLocalTime().ToString()</a>
2424
</li>
2525
}
2626
</ul>

0 commit comments

Comments
 (0)