fix(tests): fix incorrect timezone offset for DST

This commit is contained in:
Oliver Booth 2023-03-28 14:53:31 +01:00
parent 55cae2f454
commit 3121b23732
No known key found for this signature in database
GPG Key ID: 20BEB9DC87961025
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}