-
Notifications
You must be signed in to change notification settings - Fork 1k
Cannot set time zone via 'option' #796
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
Maybe the same like #223 |
I don't think it is the same thing... I'm running into the same issue. Calling:
What is stored in I don't want to change the time + timezone, just the value of the dropdown but I can't seem to figure out how best to do this. |
Ok, I've gone with a brute force approach on this one...
Where:
You might be asking, "why not always just use the second block of the if?" and I tried that but it appears that is not enough once the select is created. The second block is only ever needed if you want to change the TZ BEFORE opening the datetimepicker for the first time. Also it's important to note this DOES NOT modify the date/time in any way. It simply changes the TZ so the original date and final date will not be equal just like 1pm EST != 1pm CST. I've wrapped up the above code in a PS: I'm on 1.5.5 and I also have functions to get/set the date via unix timestamps as Date in the browser is super messed up due to having no concept of TZ, if that will help anyone let me know. |
On http://trentrichardson.com/examples/timepicker/, I tried
$('#timezone_example_1').datetimepicker('option', 'timezone', 60)
, but thetimezone
option keeps getting ignored. Only setting it using the dropdown list works. Is that a bug or am I doing something wrong?The text was updated successfully, but these errors were encountered: