English
During the "coronavirus era" we need to create many courses for immediate start on the platform.
The default course start dates are created for the following day. (+1 day)
I've created a config option that i've called $ CFG-> startdatecoursecreatenow with the value true
Then I evaluate that variable in the edit_form with this code.
if (empty ($ CFG-> startdatecoursecreatenow)) $ date-> modify ('+1 day'); |
By doing this I avoid adding a day to the start date of the course.
Spanish
Durante la época del "coronavirus" necesitamos crear muchos cursos para inicio inmediato en la plataforma.
La fechas de inicio del courso por defectoe son creadas para el día siguiente.
I've created a config option that i've called $CFG->startdatecoursecreatenow with the value true
Luego evaluo dicha variable en el edit_form with this code.
if(empty($CFG->startdatecoursecreatenow) )$date->modify('+1 day');
Haciendo esto evito que se sume un día a la fecha de inico del curso.
- has been marked as being related by
-
MDL-47448 Default course start dates inconsistent
-
- Closed
-