diff --git a/src/EyesAndEars.UWP/EyesAndEars.UWP/Services/DataServices.cs b/src/EyesAndEars.UWP/EyesAndEars.UWP/Services/DataServices.cs index dc17834..e3bd735 100644 --- a/src/EyesAndEars.UWP/EyesAndEars.UWP/Services/DataServices.cs +++ b/src/EyesAndEars.UWP/EyesAndEars.UWP/Services/DataServices.cs @@ -15,6 +15,14 @@ namespace EyesAndEars.UWP.Services { public static class DataServices { static SpeechSynthesizer _synth = new SpeechSynthesizer(); + + public static string SetCurrentTime() { + var zone = TimeZoneInfo.Local; + var britishZone = TimeZoneInfo.FindSystemTimeZoneById(zone.Id); + var newDate = TimeZoneInfo.ConvertTime(DateTime.Now, TimeZoneInfo.Local, britishZone); + return newDate.ToShortTimeString(); + } + public static async Task UpdateDevice(string url, int deviceId, RichTextBlock logs, string currentStatus, MediaElement audioUpdater, bool _logData) { try {