puppeteer/website/versioned_docs/version-9.1.1/puppeteer.page.emulatetimezone.md

23 lines
780 B
Markdown
Raw Normal View History

2021-08-10 10:09:48 +00:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Page](./puppeteer.page.md) &gt; [emulateTimezone](./puppeteer.page.emulatetimezone.md)
## Page.emulateTimezone() method
<b>Signature:</b>
```typescript
emulateTimezone(timezoneId?: string): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| timezoneId | string | Changes the timezone of the page. See [ICUs metaZones.txt](https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txt) for a list of supported timezone IDs. Passing <code>null</code> disables timezone emulation. |
<b>Returns:</b>
Promise&lt;void&gt;