diff --git a/Nexpo.Tests/Controllers/StudentSessionTimeslotControllerTest.cs b/Nexpo.Tests/Controllers/StudentSessionTimeslotControllerTest.cs index 2927331..82dd3d0 100644 --- a/Nexpo.Tests/Controllers/StudentSessionTimeslotControllerTest.cs +++ b/Nexpo.Tests/Controllers/StudentSessionTimeslotControllerTest.cs @@ -428,8 +428,8 @@ public async Task CreateNewTimeslotAndDelete() //Add new timeslot var json = new JsonObject { - { "start", DateTime.Parse("2021-11-15 12:45") }, - { "end", DateTime.Parse("2021-11-15 13:15") }, + { "start", DateTime.Parse($"{currentYear}-11-15 12:45") }, + { "end", DateTime.Parse($"{currentYear}-11-15 13:15") }, { "companyid", "-3" }, { "location", "At home" } }; @@ -534,8 +534,8 @@ public async Task CreateAndDelete() //Add new timeslot var json = new JsonObject { - { "start", DateTime.Parse("2021-11-15 12:45") }, - { "end", DateTime.Parse("2021-11-15 13:15") }, + { "start", DateTime.Parse($"{currentYear}-11-15 12:45") }, + { "end", DateTime.Parse($"{currentYear}-11-15 13:15") }, { "companyid", "-3" }, { "location", "At home" } };