Skip to content

Commit 15573ff

Browse files
committed
Fix display of sync time
1 parent 3e3ce04 commit 15573ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

AzureWebFarm.ControlPanel/Areas/ControlPanel/Views/Dashboard/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
else
3131
{
32-
@ViewHelpers.OutputSyncTime(syncStatus.SyncTime.Value)
32+
@ViewHelpers.OutputSyncTime(syncStatus.SyncTime)
3333
}
3434
if (syncStatus.SyncStatus == "Error")
3535
{

AzureWebFarm.ControlPanel/Areas/ControlPanel/Views/ViewHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace AzureWebFarm.ControlPanel.Areas.ControlPanel.Views
66
{
77
public static class ViewHelpers
88
{
9-
public static IHtmlString OutputSyncTime(DateTime timestamp)
9+
public static IHtmlString OutputSyncTime(DateTimeOffset timestamp)
1010
{
1111
var time = new TagBuilder("time");
1212
time.Attributes.Add("title", timestamp.ToString("o") + " GMT");

0 commit comments

Comments
 (0)