Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68278

Avoid course start date for future date.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.8.2
    • Course
    • MOODLE_38_STABLE

      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.

            Unassigned Unassigned
            horaciodegiorgi Horacio Degiorgi
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.