1
0
Fork 0
Browse Source

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.
stable
Craig Oates 3 years ago
parent
commit
40b60daa3f
  1. 4
      src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml.cs

4
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();