mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 04:35:00 +00:00
test: Using UTC in unit tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user