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

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

XMLWordPrintable

      $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

       

            brendanheywood Brendan Heywood
            brendanheywood Brendan Heywood
            Jason den Dulk Jason den Dulk
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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