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

Update timezones info to latest version available (2016d)

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. remove this file in your site if present: dataroot/temp/olson.txt
      2. remove this file in your site if present: dataroot/temp/timezone.txt
      3. disable network access, so http://download.moodle.org/timezone/ cannot be accessed
      4. go to Admin -> Location -> Update timezones
      5. press the continue button, so the local lib/timezone.txt will be loaded
      6. 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.
      7. TEST: ignoring the previous warning, the load ends without any PHP notice/warning/error.
      8. TEST: The page shows this info: "2349 entries imported from YOUR_MOODLE_BASEDIR/lib/timezone.txt". 2349 is the important bit. And also that the load has happened from that directory.
      9. 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).
      10. 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 (2349) but loaded from http://download.moodle.org/timezone/
      Show
      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: "2349 entries imported from YOUR_MOODLE_BASEDIR/lib/timezone.txt". 2349 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). 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 (2349) but loaded from http://download.moodle.org/timezone/
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Sprint:
      Team Beards Sprint 2

      Description

      Last update was done some weeks ago (to tzdata2016b database, see MDL-53585). Going to update to tzdata2016d. The main reason is that Caracas did, without any plan, decide to move from -4.5 to 4.0 a couple of weeks ago (see MDL-54008):

      https://www.yahoo.com/news/venezuela-moves-forward-time-zone-30-min-save-170755503.html

      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 and 28 as this is not needed in 2.9 onwards after MDL-49684 changes
      Note3: These recurring issues will end happening once 27 and 28 fall out of support.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Peer reviewer:
              Dan Poltawski
              Integrator:
              David Monllaó
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/May/16