diff --git a/X10D.Tests/src/Time/DateTimeOffsetTests.cs b/X10D.Tests/src/Time/DateTimeOffsetTests.cs index 4deba4b..d79ac4d 100644 --- a/X10D.Tests/src/Time/DateTimeOffsetTests.cs +++ b/X10D.Tests/src/Time/DateTimeOffsetTests.cs @@ -32,7 +32,7 @@ public class DateTimeOffsetTests [TestMethod] public void FirstDayOfMonth_ShouldBe1st_GivenToday() { - DateTimeOffset today = DateTime.Now.Date; + DateTimeOffset today = DateTime.UtcNow.Date; Assert.AreEqual(new DateTime(today.Year, today.Month, 1), today.FirstDayOfMonth()); }