Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datepicker: Allow setting timezone offset #1250

Open
splashdust opened this issue Mar 8, 2024 · 0 comments
Open

Datepicker: Allow setting timezone offset #1250

splashdust opened this issue Mar 8, 2024 · 0 comments

Comments

@splashdust
Copy link
Contributor

By default, the Datepicker emits a Date object with the time set to 00:00 local time. In some cases it may be desirable to select dates dates in different time zone offset.

The API for this could look something like this:

<!-- Explicitly select dates in CET time -->
<gds-datepicker
  utc-offset="+1"
></gds-datepicker>

I think it will still make sense to always default to setting the hours and minutes of the Date object to 00:00. If you need a different time you can always just add xx:xx to that date.

Related to #1227

@splashdust splashdust changed the title Datepicker: Allow setting timezone and hours offset Datepicker: Allow setting timezone offset Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant