Differences
This shows you the differences between two versions of the page.
|
|
en:sidebar:remoteapi:apiref:user:update_locale [12/05/2015 08:37] mast created |
en:sidebar:remoteapi:apiref:user:update_locale [12/05/2015 10:38] |
{{indexmenu_n>8}} | |
====== Set user localization options ====== | |
To set date and time format and 1st week day options please use **user/update_locale**: | |
<code javascript> | |
svc=user/update_locale¶ms={"userId":<long>, | |
"locale": | |
{ | |
"fd":<text>, | |
"wd":<uint> | |
} | |
} | |
</code> | |
| |
=====Parameters===== | |
^ Param ^ Description ^ | |
| **userId** | user id | | |
| **fd** | date and time format \\ (see [[../render/set_locale|here]]) | | |
| **wd** | 1st week day:\\ 1 - Monday;\\ 7 - Sunday | | |
| |
=====Response===== | |
<code javascript> | |
{ | |
"locale": | |
{ | |
"fd":<text>, /* date and time format */ | |
"wd":<uint> /* 1st week day: 1 - Monday, 7 - Sunday */ | |
} | |
} | |
</code> | |