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

Return via tool_mobile_get_config site location settings to properly display the user time zone in the app

    XMLWordPrintable

Details

    • MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • MDL-77643-master
    • Hide
      1. Login as admin, and access Location settings
      2. Select any value for"default time zone" and in the "force timezone" field select anyone that starts by Pacific
      3. Enable "Mobile services": via Site administration ► Advanced users
      4. Create a Token for the mobile app service for any user on the site (but not an admin)
        Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. Next, you can do a CURL REST call simulating a WS client with the user token.
      6. You need to replace the $wstoken and the MOODLE_URL of your moodle instance

        curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=$wstoken' | python -m json.tool

      7. Confirm that:
      8. The timezone field value is the one you selected in the second step
      9. The forcetimezone field value is the one you selected in the second step
      Show
      Login as admin, and access Location settings Select any value for"default time zone" and in the "force timezone" field select anyone that starts by Pacific Enable "Mobile services": via Site administration ► Advanced users Create a Token for the mobile app service for any user on the site (but not an admin) Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user token. You need to replace the $wstoken and the MOODLE_URL of your moodle instance curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=$wstoken' | python -m json.tool Confirm that: The timezone field value is the one you selected in the second step The forcetimezone field value is the one you selected in the second step

    Description

      MDL-72458 introduced in Moodle 4.1 a new feature to display the user time zone

      While working on MOBILE-4203 we've noticed that when the user has selected to use the server time zone we receive a value 99 (not the server time zone) and currently we don't have any way to obtain the time zone.

      Attachments

        Issue Links

          Activity

            People

              jleyva Juan Leyva
              jleyva Juan Leyva
              Dani Palou Dani Palou
              Paul Holden Paul Holden
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Apr/23

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 55 minutes
                  55m