timezone( )


Gets the site's timezone.

The retrieved timezone is the timezone that has been entered in the General Info section of your site's Dashboard.

The timezone is used your site, apps (e.g. Wix Stores, Wix Bookings), and other Wix features.

Method Declaration
Copy
function timezone(): Promise<string>;
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the site's timezone
JavaScript
import { createClient } from "@wix/sdk"; import { site } from "@wix/site"; import { site as wixSite } from "@wix/site-site"; // ... const wixClient = createClient({ host: site.host(), modules: { wixSite }, }); const timezone = await wixClient.wixSite.timezone(); // "America/New_York"
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?