Closed dartajax closed 1 month ago
@dartajax I was able to figure out how to "sync" the dates so that you can't enter an endDate
before a startDate
. You can still do an end time before the start time, so the error message could still come up (which has an extra "AM" at the end, too. Can't figure out where that's set in the code or its dependencies). I'm just working on updating tests for my fix.
Because of the way I'm "syncing" the dates, I didn't go for the "+1" since it would make it impossible to create a start and end date on the same day, which I'm sure is a potential use case.
@dartajax This looks like it's been handled by ilios/frontend#8103 but I'll let you close it.
This is just a convenience for the user. If you want to display a learning material and set the start date to a future (later than today) date, the end date should automatically (after the end date button is pressed) adjust to the same date since I guess it could be a one days special.
IF this is a duplicate, I apologize in advance.