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

$CFG->scheduled_tasks has incorrect order for dayofweek and months in cron spec

    XMLWordPrintable

Details

    Description

      $CFG->scheduled_tasks can define a forced cron spec, but this spec has a typo in it which swaps the dayofweek and month fields:

      https://github.com/moodle/moodle/blob/master/config-dist.php#L1132

      This was not intentional and the cron spec should just be the standard with month first then dayofweek:

      https://en.wikipedia.org/wiki/Cron#CRON_expression

       

      Attachments

        Issue Links

          Activity

            People

              brendanheywood Brendan Heywood
              brendanheywood Brendan Heywood
              Jason den Dulk Jason den Dulk
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              CiBoT CiBoT
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/Jan/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m