Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:sidebar:remoteapi:apiref:user:get_locale [12/05/2015 08:27]
mast created
en:sidebar:remoteapi:apiref:user:get_locale [12/05/2015 10:37]
Line 1: Line 1:
-{{indexmenu_n>​9}} 
-====== Get user localization options ====== 
-You can get date and time format and the first week day options using **user/​get_locale** command: 
-<code javascript>​ 
-svc=user/​get_locale&​params={"​userId":<​long>​} 
-</​code>​ 
  
-=====Parameters===== 
-^ Param ^ Description ^ 
-| userId | user id | 
- 
-=====Response===== 
-If settings never changed via [[../​user/​update_locale|user/​update_locale]] then blank object returned: 
-<code javascript>​ 
-{} 
-</​code>​ 
-If settings changed then response will be the following: 
-<code javascript>​ 
-{ 
-    "​fd":<​text>, ​  /* date and fime format */ 
-    "​wd":<​uint> ​   /* the 1st week day: 1 - Monday, 7 - Sunday */ 
-} 
-</​code>​ 
-:!: More info about date and time format may be get from [[../​render/​set_locale|here]]. 
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam