mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-09 22:55:42 +00:00
fix(tests): fix incorrect timezone offset for DST
This commit is contained in:
parent
55cae2f454
commit
3121b23732
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user