getTimeZoneString (XSPContext - JavaScript)

Gets the current time zone as a string.

Defined in

XSPContext (JavaScript)

Syntax

getTimeZoneString() : string
Return value Description
string The time zone.

Usage

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

Examples

This example gets the time zone for the current context as a string.
return context.getTimeZoneString()