setLocale
Synopsis
void setLocale(
string sessionId,
string name,
string timeZone,
int tzOffset
)
If invoked with a session context ID as first argument (see also §newSessionContext), the session ID stored in the session context will be used as the actual session ID. So the locale is changed for the whole session including all projects loaded in the session.
Optional parameters ‘timeZone’ and ‘tzOffset’ (types string and integer)
TmeZone: if specified and not empty, should be a time-zone accepted by ZoneId.of(String)
If it is valid the time-zone will be used as the session’s new time-zone, regardless of whether or not ‘tzOffset’ has been specified.
If the time-zone is not valid and ‘tzOffset’ has not been specified then the operation will fail.
If the time-zone is not valid and ‘tzOffset’ has been specified then the session’s new time-zone will be set according to the zone offset.
tzOffset: if specified, must be an integer between -840 and +840, inclusive, regardless of whether or not the value is actually used to set the time zone.