settings

Note: This API is currently relevant only for dashboard pages in CLI or self-hosted app development.

The settings submodule allows the code in an app's frontend extensions to access the active time zone for each interface. This allows apps to render the time in the same time zone that the Wix user has chosen for the site.

Import statement

Copy

Methods

getTimeZone()

Gets the site's time zone. The retrieved time zone is the time zone that has been entered in the General Info section of the site's Dashboard.

Method Declaration

Copy

Returns

Time zone identifier based on the tz database. For example: 'America/New_York'.

Example

Gets the site's time zone.

Copy
Did this help?