Start and end course dates are initialised in different places (course form, upload, approve requests, external database enrolment, any plugin creating courses...)... But with current API, current get_default_course_enddate() function couldn't be used, because its dependency to the mform.
So it's necessary to create a better course API to get default startdate and enddate. That API will include all the logic (different by course formats, midnight time, duration...) and will be used everywhere these dates are initialised now, to make them more coherent along the site.
- Discovered while testing
-
MDL-37390 Course startdate initially set to 0 when approving course requests
-
- Closed
-
- has a non-specific relationship to
-
MDL-83990 Courses created via webservice have a default startdate of "0"
-
- Closed
-
- has been marked as being related by
-
MDL-61081 Automatically-created future courses show up in the "Past Courses" section of the new Course Overview block
-
- Closed
-