Back to Puppeteer

Page.emulateTimezone() method

website/versioned_docs/version-24.40.0/api/puppeteer.page.emulatetimezone.md

19.2.2669 B
Original Source

Page.emulateTimezone() method

Signature

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

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

timezoneId

</td><td>

string

</td><td>

(Optional) Changes the timezone of the page. See ICU’s metaZones.txt for a list of supported timezone IDs. Passing null disables timezone emulation.

</td></tr> </tbody></table>

Returns:

Promise<void>