[QUESTION] How can I change timezone using nodriver? #2210
-
|
How can I change the timezone of nodriver? I can see this method |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Try using something like this: await tab.send(cdp.emulation.set_timezone_override(timezone_id="UTC"))From CDP documentation, You can find a list of all TZ Identifier here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones |
Beta Was this translation helpful? Give feedback.
-
|
Yes or don't raise an issue for a non issue that is not a bug of the tool but lack of knowledge. See (and save the site as bookmark, oh and all method names must be translated to underscore_stuff instead of underscoreStuff ) |
Beta Was this translation helpful? Give feedback.
Try using something like this:
From CDP documentation,
timezone_idis:The timezone identifier. If empty, disables the override and restores default host system timezone.
You can find a list of all TZ Identifier here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones