Skip to content

Add ability to set timezone #1559

@FrankYFTang

Description

@FrankYFTang

ECMA402 has the concept of "Default Timezone" in sec 6.4.3 and there is a new HTML "timezonechange event" proposal (whatwg/html PR 3047). It will be nice if webdriver could support the setting of the timezone so web tests could easily test these

I put together a "Set Timezone WebDriver Extension" proposed API . It will be nice if that could be folded into w3c/webdriver

Notice Chromium already implement #3047 behind a flag (see https://chromium-review.googlesource.com/c/chromium/src/+/1994529/ ) and I am trying to implement the above proposal into chromedriver in https://chromium-review.googlesource.com/c/chromium/src/+/2512788

The usage of this new command will not only help to test the newly added timezonechange event but also help developers to write tests for under different host timezone much easier.
Please let me know how could I contribute to this specification. I am a regular TC39 and ECMA402 subcommittee members.

Also ref: https://docs.google.com/document/d/1QAMHl7qIfGyFmWxta8OpR2YwivwaVgX_ixG17QWAgd0/edit#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions