get_locale

You can get the date and time format and the first week day options using the user/get_locale method.

Copied!
svc=user/get_locale&params={"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:

Copied!
{}

If the settings have been changed, then the response will be the following:

Copied!
{
	"fd":"<text>",  /* date and time format */
	"wd":<uint>     /* the 1st week day: 1 - Monday, 7 - Sunday */
}

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.

If you find a mistake in the text, please select it and press Ctrl+Enter.