1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-22 19:58:49 +00:00

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

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