get_locale

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

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

Copied!
{}

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

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

Error codes

Error codeDescription
7Failed to fetch the user with ACL (ADF_ACL_ITEM_VIEW_PROPERTIES).
Download PDF file
Download Word document

See also