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

String for timezone europe/kyiv not found (tzdb 2022b)

    XMLWordPrintable

Details

    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MDL-75641_311
    • MDL-75641_400
    • Hide

      Avoid using PHP 8.0.23 or PHP 8.1.10 (any PHP release after September 1st, 2022). Or avoid updating the timezones database in the system to 2022b or later if your PHP uses it.

      Show
      Avoid using PHP 8.0.23 or PHP 8.1.10 (any PHP release after September 1st, 2022). Or avoid updating the timezones database in the system to 2022b or later if your PHP uses it.
    • Hide

      Any (one) of these verifications should be enough:

      [OR] Testing locally.

      1. Requirements:
        1. Ensure that you are using PHP 8.0.23 (php -v), install it if needed.
        2. Also,ensure you've the latest time zones database, version 2022b (apt-get update && apt-get install tzdata).
      2. Init phpunit (php admin/tool/phpunit/cli/init.php).
      3. Run vendor/bin/phpunit lib/tests/date_test.php
      4. Verify that it passes without any failure (specifically without any europe/kyiv failure).

      [OR] Trust GHA runs, that are already using PHP 8.0.23

      1. Look to the Github badges in this issue (near the branches information in this issue).
      2. Verify that all them have passed ok (green).
      Show
      Any (one) of these verifications should be enough: [OR] Testing locally. Requirements: Ensure that you are using PHP 8.0.23 ( php -v ), install it if needed. Also,ensure you've the latest time zones database, version 2022b ( apt-get update && apt-get install tzdata ). Init phpunit ( php admin/tool/phpunit/cli/init.php ). Run vendor/bin/phpunit lib/tests/date_test.php Verify that it passes without any failure (specifically without any europe/kyiv failure). [OR] Trust GHA runs, that are already using PHP 8.0.23 Look to the Github badges in this issue (near the branches information in this issue). Verify that all them have passed ok (green).

    Description

      It seems that latest versions of PHP come with a version of IANA database (TZDB) time zones version 2022b that includes the change of Europe/Kiev to Europe/Kyiv (note the old name still remains as alias).

      This PHP Bug confirms it: https://bugs.php.net/bug.php?id=80254

      And this is the failure that we are getting when using the latest PHP versions using that time zones database:

      Example run, using just released 8.0.23 (September 1st): https://github.com/stronk7/moodle/actions/runs/2979120020

      1) core_date_testcase::test_timezone_lang_strings
      String for timezone europe/kyiv not found.
      Failed asserting that false is true.
       
      D:\a\moodle\moodle\lib\tests\date_test.php:174
      D:\a\moodle\moodle\lib\phpunit\classes\advanced_testcase.php:80
      

      So this issue is about to add that new Europe/Kyiv in all supported versions.

      As a reference, MDL-72953 was exactly the same case. Trivial to fix, it seems, just add the new string.

      Ciao

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              stronk7 Eloy Lafuente (stronk7)
              Matteo Scaramuccia Matteo Scaramuccia
              Jun Pataleta Jun Pataleta
              Jun Pataleta Jun Pataleta
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Sep/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 15 minutes
                  1h 15m