setTimeZoneString (XSPContext - JavaScript)

Sets the time zone for the current session as a string.

Defined in

XSPContext (JavaScript)

Syntax

setTimeZoneString(timezone:string) : void
Parameter Description
timezone The time zone.

Usage

The time zone string is in standard format, for example, America/New_York.

This time zone replaces what is sent by the browser.

Examples

This button forces the time zone for the current session.
context.setTimeZoneString("America/Los_Angeles")