puppeteer/docs/api/puppeteer.page.emulatetimezone.md
2023-02-23 13:31:23 +01:00

1.2 KiB
Raw Blame History

sidebar_label
Page.emulateTimezone

Page.emulateTimezone() method

Signature:

class Page {
  emulateTimezone(timezoneId?: string): Promise<void>;
}

Parameters

Parameter Type Description
timezoneId string (Optional) Changes the timezone of the page. See ICUs metaZones.txt for a list of supported timezone IDs. Passing null disables timezone emulation.

Returns:

Promise<void>