-
Notifications
You must be signed in to change notification settings - Fork 153
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
add timezone option to airdatepicker #648
Comments
If you install from GitHub, there's now a |
I tried this out and want to clarify--
So that means it is impossible to set the initially selected time with this library, without knowing the user's timezone. I imagine this will be a problem for many apps that rely on time selection, unfortunately. I see two ways to make this work:
Either of these options would allow an app author to get a consistent result from the picker regardless of user timezone. |
It'd be great to set the timezone instead of it defaulting to UTC. In my case, I need to store the selected date/time in a variety of possible time zones, and the user is simply selecting the date/time according to their local time. To adjust the selected date/time value is rather arduous: I have to recognize their tz, modify the UTC output by the correct number of hours (while keeping it in UTC), and then convert it to their local time zone. For instance, a user in america/los_angeles may select a date of 2023-12-25. But when I convert the output directly to the pacific time zone it becomes 2023-12-24.
The text was updated successfully, but these errors were encountered: