test: Using UTC in unit tests

This commit is contained in:
Chris Cameron
2020-03-11 15:36:21 -04:00
parent e99a7f313f
commit b496594cd6
2 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ namespace ICD.Common.Utils.Tests.Services.Logging
public void TimestampTest()
{
LogItem item = new LogItem(eSeverity.Critical, null);
DateTime time = IcdEnvironment.GetLocalTime();
DateTime time = IcdEnvironment.GetUtcTime();
Assert.IsTrue((time - item.Timestamp).TotalSeconds <= 1);
}