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

Display hours in maintenance mode messages

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.2
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide
      1. Open a terminal and go to the Moodle installation's root directory.
      2. Enter the following command:

        php admin/cli/maintenance.php --enablelater=61
        

      3. Open a browser and navigate to the Moodle site.
      4. Check the warning message on the lower right corner of the page.
        • Confirm that the displayed time left before the site switches to maintenance mode is correct, with the hours information shown. e.g.

          This site will be switched to maintenance mode in 1 hours 0 mins 55 secs

        • Confirm that the timer counts down correctly.
      5. Wait for the countdown to reach a value of less than an hour.
        • Confirm that the displayed time left before the site switches to maintenance mode is correct, with the hours information gone. e.g.

          This site will be switched to maintenance mode in 59 mins 55 secs

      6. Enter the following command:

        php admin/cli/maintenance.php --enablelater=45
        

      7. Open a browser and navigate to the Moodle site.
      8. Check the warning message on the lower right corner of the page.
        • Confirm that the displayed time left before the site switches to maintenance mode is correct, with the hours information gone. e.g.

          This site will be switched to maintenance mode in 44 mins 55 secs

        • Confirm that the timer counts down correctly.
      Show
      Open a terminal and go to the Moodle installation's root directory. Enter the following command: php admin/cli/maintenance.php --enablelater=61 Open a browser and navigate to the Moodle site. Check the warning message on the lower right corner of the page. Confirm that the displayed time left before the site switches to maintenance mode is correct, with the hours information shown. e.g. This site will be switched to maintenance mode in 1 hours 0 mins 55 secs Confirm that the timer counts down correctly. Wait for the countdown to reach a value of less than an hour. Confirm that the displayed time left before the site switches to maintenance mode is correct, with the hours information gone. e.g. This site will be switched to maintenance mode in 59 mins 55 secs Enter the following command: php admin/cli/maintenance.php --enablelater=45 Open a browser and navigate to the Moodle site. Check the warning message on the lower right corner of the page. Confirm that the displayed time left before the site switches to maintenance mode is correct, with the hours information gone. e.g. This site will be switched to maintenance mode in 44 mins 55 secs Confirm that the timer counts down correctly.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
       MDL-56442-master

      Description

      When we set the maintenance mode message several hours before the site shutdown, the message isn't user friendly. For 12 hours, we get a "This site will be switched to maintenance mode in 719 mins 55 secs".
      We'd rather have "This site will be switched to maintenance mode in 11 hours 59 mins 55 secs".

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/Dec/16