Search...
getTimeZone( )
Gets site time zone information.
Description
The getTimeZone()
function returns a Promise that resolves to the site's
time zone information.
The retrieved time zone information is the information that has been entered in the General Info section of your site's Dashboard.
Syntax
function getTimeZone(): Promise<string>
getTimeZone Parameters
This function does not take any parameters.
Returns
Fulfilled - An object containing the site time zone information. Rejected - Error message.
Return Type:
Promise<string>
Was this helpful?
Get site time zone information
Copy Code
1import wixSiteBackend from 'wix-site-backend';23export function getTimeZone() {4 return wixSiteBackend.generalInfo.getTimeZone(); // "America/New_York"5}