-
Bug
-
Resolution: Fixed
-
Minor
-
4.4.5
When creating a course via webservice (Function core_course_create_courses), the request can specify a startdate. However, if no startdate is given, Moodle defaults to "0" (meaning: 01.01.1970 00:00:00 UTC). This is a surprising default in my opinion.
As the standard 'weekly sections' format calculates the end date from the start date and number of sections, the newly created course is long over, meaning: The course is not shown as currently running course, and is even suggested for data deletion if there is a retention period set for course data that does not include the 70s.
I might miss something that makes 0 the "correct" default. Is there a reason, or could we update the API for course creation to set the current date as default?
- has been marked as being related by
-
MDL-82244 core_course_create_courses does not respect site default setting for course visibility
-
- Waiting for peer review
-
-
MDL-37390 Course startdate initially set to 0 when approving course requests
-
- Closed
-
-
MDL-78381 The default admin setting course|showactivitydates is ignored in web service core_course_create_courses
-
- Closed
-
-
MDL-61184 Create course startdate and enddate API functions
-
- Open
-