diff --git a/DataFilter/DataFilterFilteringLists.cs b/DataFilter/DataFilterFilteringLists.cs index 1240854..b995703 100644 --- a/DataFilter/DataFilterFilteringLists.cs +++ b/DataFilter/DataFilterFilteringLists.cs @@ -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); diff --git a/util.cs b/util.cs index a96d136..62c3618 100644 --- a/util.cs +++ b/util.cs @@ -24,8 +24,8 @@ namespace raven_integration private static HttpClient client { get; } = new HttpClient(); - // public static string API_BASE_URL = "http://localhost:7575/api/v8.0/"; - public static string API_BASE_URL = "https://test.helloayanova.com/api/v8.0/"; + public static string API_BASE_URL = "http://localhost:7575/api/v8.0/"; + //public static string API_BASE_URL = "https://test.helloayanova.com/api/v8.0/"; public static string TEST_DATA_FOLDER = @"..\..\..\testdata\";