Get user locale options

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

svc=user/get_locale&params={"userId":<long>}

Parameters

Param Description
userId user id

Response

If settings never changed via user/update_locale then blank object returned:

{}

If settings changed then response will be the following:

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

:!: More info about date and time format may be get from here.

Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam