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

Users UTC+/- timezone settings not migrated to new timezone format.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9, 3.0.4
    • Fix Version/s: 3.0.5
    • Component/s: User management
    • Labels:
    • Testing Instructions:
      Hide

      3.1

      1. Hack your database and set a user's timezone to -1.
      2. Go to edit the profile of that person
      3. Confirm that you see Invalid timezone: "UTC-1.0"
      4. Confirm that the timezone was not changed after submitting the form
      5. Repeat with different timezones from -13 to 13

      3.0 onwards

      1. Make sure the Unit Tests pass
      2. Hack the DB to set a user's timezone to 0
      3. Confirm that it is displayed as "Invalid timezone: UTC" when edit that user's profile
      Show
      3.1 Hack your database and set a user's timezone to -1 . Go to edit the profile of that person Confirm that you see Invalid timezone: "UTC-1.0" Confirm that the timezone was not changed after submitting the form Repeat with different timezones from -13 to 13 3.0 onwards Make sure the Unit Tests pass Hack the DB to set a user's timezone to 0 Confirm that it is displayed as "Invalid timezone: UTC" when edit that user's profile
    • Workaround:
      Hide

      None except to manually update all user's timezones.

      Show
      None except to manually update all user's timezones.
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-50704-master

      Description

      With the adoption of the new core_date class and timezone methods it seems the UTC+/- timezones (standard in previous versions) are no longer supported nor migrated to new timezone format.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  2 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    11/Jul/16