update_locale

To set the date and time format and the first week day options, use the following command:

Copied!
svc=user/update_locale&params={"userId":<long>,
                               "locale":
                                         {
                                             "fd":"<text>",
                                             "wd":<ubyte>
                                         }
}

Parameters

The required parameters are marked with an asterisk (*).

Parameter

Description

userId*

User ID.

fd*

Date and time format.
See here.

wd*

First week day:
1 for Monday;
7 for Sunday.

Response

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

Error codes

Error codesDescription
7Failed to fetch user with ACL (ADF_ACL_ITEM_VIEW_PROPERTIES), or incorrect parameters provided.
6Failed to update locale.

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

Your message was sent. Thank you!

Report a mistake

An error occurred while submitting the form

Download PDF file
Download Word document

See also