get_locale
You can get the date and time format and the first week day options using the user/get_locale method.
svc=user/get_locale¶ms={"userId":<long>}
Parameters
The required parameters are marked with an asterisk (*).
| Parameter | Description |
|---|---|
| userId* | User ID. |
Response
If the settings have never been changed using the user/update_locale request, then a blank object is returned:
{}
If the settings have been changed, then the response will be the following:
{
"fd":"<text>", /* date and time format */
"wd":<uint> /* the 1st week day: 1 - Monday, 7 - Sunday */
}
For more information about the date and time format, see render/set_locale.
If the request fails, an error code is returned.
Error codes
| Error code | Description |
|---|---|
| 4 | Invalid input parameters. |
| 7 | The user isn’t found, or you have no View detailed object properties access right to this user. |