puppeteer/docs/api/puppeteer.page.emulatetimezone.md

641 B
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>