Affects Version/s: 2.3.2
Fix Version/s: None
1. Change a user's timezone to UTC+10
2. Make an API request to core_user_get_users_by_id, including the user's ID number in the request.
Expected result: An XML response with the user's details
What actually happens: An exception is returned
When requesting a user's details via the core_user_get_users_by_id function Moodle throws an exception if the user's timezone is UTC+10 or higher. Setting the user's timezone to a lower value or Server's local time makes the API function work again. I have tested this in an empty Moodle 2.3.2 setup, so I do not believe it's configuration related.
The error returned is the following:
<?xml version="1.0" encoding="UTF-8" ?>
<MESSAGE>Invalid response value detected</MESSAGE>
<DEBUGINFO>timezone => Invalid response value detected: Invalid external api response: the value is "10.0", the server was expecting "timezone" type</DEBUGINFO>
Please let me know if you require further information.