DST Fix
This commit is contained in:
@@ -1521,8 +1521,12 @@ namespace raven_integration
|
||||
w.notes = "blah";
|
||||
w.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
//Put it right at midnight next month to ensure boundaries are respected
|
||||
w.startDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1, 00, 00, 00).AddMonths(1).ToUniversalTime();
|
||||
w.endDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1, 00, 00, 00).AddMonths(1).AddHours(1).ToUniversalTime();
|
||||
//Note, due to daylight saving time this test can fail by one hour on the boundary
|
||||
//as noted in March 2019
|
||||
//w.startDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1, 00, 00, 00).AddMonths(1).ToUniversalTime();
|
||||
//So changing it to the second to avoid this shit
|
||||
w.startDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 2, 00, 00, 00).AddMonths(1).ToUniversalTime();
|
||||
w.endDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 2, 00, 00, 00).AddMonths(1).AddHours(1).ToUniversalTime();
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
|
||||
Reference in New Issue
Block a user