get_locale
You can get the date and time format and the first week day options using the user/get_locale command.
svc=user/get_locale¶ms={"userId":<long>}
Parameters
The required parameters are marked with an asterisk (*).
Param | 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 fime format */
"wd":<uint> /* the 1st week day: 1 - Monday, 7 - Sunday */
}
For more information about the date and time format, see /render/set_locale.
Error codes
Error code | Description |
---|---|
7 | Failed to fetch the user with ACL (ADF_ACL_ITEM_VIEW_PROPERTIES). |