From 15573ff9e4d4ac013b346a9942dcfd6ea191b4c6 Mon Sep 17 00:00:00 2001 From: Matt Davies Date: Wed, 28 May 2014 18:52:03 +0800 Subject: [PATCH] Fix display of sync time --- .../Areas/ControlPanel/Views/Dashboard/Index.cshtml | 2 +- .../Areas/ControlPanel/Views/ViewHelpers.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AzureWebFarm.ControlPanel/Areas/ControlPanel/Views/Dashboard/Index.cshtml b/AzureWebFarm.ControlPanel/Areas/ControlPanel/Views/Dashboard/Index.cshtml index 484255a..86f6595 100644 --- a/AzureWebFarm.ControlPanel/Areas/ControlPanel/Views/Dashboard/Index.cshtml +++ b/AzureWebFarm.ControlPanel/Areas/ControlPanel/Views/Dashboard/Index.cshtml @@ -29,7 +29,7 @@ } else { - @ViewHelpers.OutputSyncTime(syncStatus.SyncTime.Value) + @ViewHelpers.OutputSyncTime(syncStatus.SyncTime) } if (syncStatus.SyncStatus == "Error") { diff --git a/AzureWebFarm.ControlPanel/Areas/ControlPanel/Views/ViewHelpers.cs b/AzureWebFarm.ControlPanel/Areas/ControlPanel/Views/ViewHelpers.cs index f14074d..4113650 100644 --- a/AzureWebFarm.ControlPanel/Areas/ControlPanel/Views/ViewHelpers.cs +++ b/AzureWebFarm.ControlPanel/Areas/ControlPanel/Views/ViewHelpers.cs @@ -6,7 +6,7 @@ namespace AzureWebFarm.ControlPanel.Areas.ControlPanel.Views { public static class ViewHelpers { - public static IHtmlString OutputSyncTime(DateTime timestamp) + public static IHtmlString OutputSyncTime(DateTimeOffset timestamp) { var time = new TagBuilder("time"); time.Attributes.Add("title", timestamp.ToString("o") + " GMT");