setTimeZone (XSPContext - JavaScript™)
Sets the time zone for the current session.
Defined in
XSPContext (JavaScript)Syntax
setTimeZone(timezone:TimeZone) : void
Parameter | Description |
---|---|
timezone |
The time zone. |
Usage
This time zone replaces what is sent by the browser.Examples
This button forces the time zone for the current session.var tz = TimeZone.getTimeZone("America/Los_Angeles");
context.setTimeZone(tz)