Puppeteer: Invalid timezone ID: {value}
The browser rejects an unrecognized timezone identifier.
The browser rejects an unrecognized timezone identifier.
Error message
Invalid timezone ID: {value}
{value} is replaced by the value shown in your error message.
How this error happens
emulateTimezone expects a timezone identifier, not a city nickname or UTC-offset label.
The snippets use an open Puppeteer page named page.
await page.emulateTimezone(
"Paris time"
);
How to fix
Use a timezone identifier such as Europe/Paris, or pass an empty string to disable the override.
await page.emulateTimezone(
"Europe/Paris"
);
Things to keep in mind
Timezone emulation does not change the browser’s language or geolocation.