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

Update timezones info to latest version available (2017b) - LAST UPDATE EVER!

XMLWordPrintable

    • MOODLE_27_STABLE
    • MOODLE_27_STABLE
    • Hide

      Upgrade to Moodle 3.1 and up!

      Show
      Upgrade to Moodle 3.1 and up!
    • Hide

      MOODLE_27_STABLE only:

      • remove this file in your site if present: dataroot/temp/olson.txt
      • remove this file in your site if present: dataroot/temp/timezone.txt
      • disable network access, so http://download.moodle.org/timezone/ cannot be accessed
      • go to Admin -> Location -> Update timezones
      • press the continue button, so the local lib/timezone.txt will be loaded
      • TEST: With debugging enabled, you should get one message like "cURL request for "http://download.moodle.org/timezone/" failed...". Perfect, that means you disabled network access ok.
      • TEST: ignoring the previous warning, the load ends without any PHP notice/warning/error.
      • TEST: The page shows this info: "2409 entries imported from YOUR_MOODLE_BASEDIR/lib/timezone.txt". 2409 is the important bit. And also that the load has happened from that directory.
      • TEST: Run the phpunit tests, paying attention to any testmoodlelib.php result. Process should end with "xxx passes, 0 fails and 0 exceptions." (or, alternatively, if there are some tests failing, none of them are related to testmoodlelib.php and date/time functions).

      ANY MOODLE BRANCH, FROM 18_STABLE to 28_STABLE:

      • POST-TEST (optional, must work if all the prev tests have worked): after rolling upstream (24h later at least), with network access enabled, load the timezones again, it should show the same number of timezones (2409) but loaded from http://download.moodle.org/timezone/
      Show
      MOODLE_27_STABLE only: remove this file in your site if present: dataroot/temp/olson.txt remove this file in your site if present: dataroot/temp/timezone.txt disable network access, so http://download.moodle.org/timezone/ cannot be accessed go to Admin -> Location -> Update timezones press the continue button, so the local lib/timezone.txt will be loaded TEST: With debugging enabled, you should get one message like "cURL request for "http://download.moodle.org/timezone/" failed...". Perfect, that means you disabled network access ok. TEST: ignoring the previous warning, the load ends without any PHP notice/warning/error. TEST: The page shows this info: "2409 entries imported from YOUR_MOODLE_BASEDIR/lib/timezone.txt". 2409 is the important bit. And also that the load has happened from that directory. TEST: Run the phpunit tests, paying attention to any testmoodlelib.php result. Process should end with "xxx passes, 0 fails and 0 exceptions." (or, alternatively, if there are some tests failing, none of them are related to testmoodlelib.php and date/time functions). ANY MOODLE BRANCH, FROM 18_STABLE to 28_STABLE: POST-TEST (optional, must work if all the prev tests have worked): after rolling upstream (24h later at least), with network access enabled, load the timezones again, it should show the same number of timezones (2409) but loaded from http://download.moodle.org/timezone/

      Last update was done 11 months ago (to tzdata2016d database, see MDL-54018). Going to update to tzdata2017b.

      Notes on this process are at https://docs.moodle.org/dev/Timezone_information

      Note1: Current timezone.txt format is compatible only with Moodle 1.8 and upwards.
      Note2: We'll be spreading this change to 27 only because it's the only version under some degree of support using them. Also will put the public link (@ downloads) pointing to the 27_STABLE file.
      Note3: These recurring issues will end happening once 27 and 28 fall out of support.
      Note4: With 2.7 falling out of support in weeks, this will be the LAST refresh to timezones going to repos ever. People, move to Moodle 2.9 and upwards!

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Jake Dallimore Jake Dallimore
            Dan Poltawski Dan Poltawski
            Adrian Greeve Adrian Greeve
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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