From 40b60daa3fa3618e303a67cd900166f67544c09c Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Mon, 3 May 2021 17:28:27 +0100 Subject: [PATCH] initialise CurrentTime with current time zone offset. CurrentTime is not a main feature and does not refer to any of the time-stamps attached to any of the device sections (on the dashboard). This is just a clock to help people quickly see how long is left in the day before the various devices shut down (based on the Legend Info. below it. So, this is just a cosmetic change. --- src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml.cs b/src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml.cs index a00a2e6..c6da27b 100644 --- a/src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml.cs +++ b/src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml.cs @@ -37,7 +37,7 @@ namespace EyesAndEars.UWP { _vm.Device4 = DataServices.CreateFallBackDevice(4); _vm.Device5 = DataServices.CreateFallBackDevice(5); // _vm.Device6 = DataServices.CreateFallBackDevice(6); - _vm.CurrentTime = DateTime.UtcNow.ToShortTimeString(); + _vm.CurrentTime = DataServices.SetCurrentTime(); DataContext = _vm; } @@ -62,7 +62,7 @@ namespace EyesAndEars.UWP { _vm.Device5 = await DataServices.UpdateDevice (url, 5, Logs, _vm.Device5.LatestStatus.status, AudioUpdater, _logData); // _vm.Device6 = await DataServices.UpdateDevice(url, 6); - _vm.CurrentTime = DateTime.UtcNow.ToShortTimeString(); + _vm.CurrentTime = DataServices.SetCurrentTime(); } else { IntialiseDataContext();