mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-23 01:18:46 +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]
|
[TestMethod]
|
||||||
public void FirstDayOfMonth_ShouldBe1st_GivenToday()
|
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());
|
Assert.AreEqual(new DateTime(today.Year, today.Month, 1), today.FirstDayOfMonth());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user