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

get_record call in get_timezone_record has third param as bool, whereas it should be int

    XMLWordPrintable

Details

    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • w04_MDL-31208_m23_timezone
    • Hide

      0/ enable debug developer
      1/ set up timezone on your server
      2/ load timezones if needed (admin->location->update timezones)
      3/ make sure it does not throw any exceptions or notices
      4/ edit your profile and change the timezone to some known timezone near you
      5/ after saving the profile, the "Last access" in profile page shows the correct time for the timezone selected, and no warnings/notices are shown.

      Show
      0/ enable debug developer 1/ set up timezone on your server 2/ load timezones if needed (admin->location->update timezones) 3/ make sure it does not throw any exceptions or notices 4/ edit your profile and change the timezone to some known timezone near you 5/ after saving the profile, the "Last access" in profile page shows the correct time for the timezone selected, and no warnings/notices are shown.

    Description

      In lib/moodlelib.php, third argument to the get_record call in get_timezone_record($timezonename) is incorrect.
      Currently it is true and should be IGNORE_MULTIPLE.

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              rajeshtaneja Rajesh Taneja
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Adrian Greeve Adrian Greeve
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Mar/12