refactor: Changed DateTime extension method to a simple util method

This commit is contained in:
Chris Cameron
2019-09-04 14:30:45 -04:00
parent dc1b60e629
commit 027c9ffe82
8 changed files with 55 additions and 23 deletions

View File

@@ -190,6 +190,16 @@ namespace ICD.Common.Utils
return CrestronEnvironment.GetLocalTime();
}
public static void SetLocalTime(DateTime localTime)
{
CrestronEnvironment.SetTimeAndDate((ushort)localTime.Hour,
(ushort)localTime.Minute,
(ushort)localTime.Second,
(ushort)localTime.Month,
(ushort)localTime.Day,
(ushort)localTime.Year);
}
public static eEthernetEventType GetEthernetEventType(Crestron.SimplSharp.eEthernetEventType type)
{
switch (type)