← Back to Emulation domain

Emulation.setTimezoneOverride

Overrides default host system timezone with the specified one.

Domain: Emulation stable

Parameters

NameTypeDescription
timezoneIdstringThe timezone identifier. List of supported timezones: https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txt If empty, disables the override and restores default host system timezone.

Example Request

{
  "id": 1,
  "method": "Emulation.setTimezoneOverride",
  "params": {
    "timezoneId": "timezoneId-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Emulation.setTimezoneOverride', {"timezoneId": "timezoneId-value"});
console.log(result);