-
Notifications
You must be signed in to change notification settings - Fork 1k
useLocalTimezone causes bad behavior #471
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
Comments
By the way I'd be happy to try to fix it if you can point me in the right direction. |
Hard to say exactly where it is without tracing it through, but this may be a start: (Also note that is the dev branch) |
Confirming it. Go an input with a value (IE: 01/16/2013 18:00 +0000). When clicking on it (datePicker has option useLocalTimezone), the input is changed for +0100 (in my case) |
On line 1764 (dev branch)
then If I come up with some elegant solution I'll do a pull request. |
Moreover, you already does the selectLocalTimeZone in
Which does not modify anything is the local timezone is different of the parsed time zone. I've made a pull request. |
If useLocalTimezone is set to true and the field value contains a time zone that differs from the local time zone, opening the picker will immediately change the time zone in the field to the local time zone, but does not make a corresponding change to the date/time. Thus, clicking in the field changes the time.
Instead, one of two things should happen:
Option 1 is obviously easier to accomplish.
The text was updated successfully, but these errors were encountered: