-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
minDate and maxDate always uses timezones. Disregards passed Moment #1294
Comments
Quite the same problem here, at UTC+2 : The min date is correctly set, but, when using the "use Current" option (instead of minDate)
When using minDate combined with useCurrent, I can't select the date at 10:00 UTC Hope this helps for debugging, it is an important feature for us... |
OK, I tried some a few things after posting and I have to correct some of my assertions:
|
Regarding my comment about "each time I open the date picker, the time goes back by 2 hours.". This is an issue with the knockout binding. (explained in #1304) |
Hello. Thanks for using my project. We’re closing all tickets/prs for v4 as it is no longer supported. We’re making way for a new version. Please read this blog post |
I've been struggling to set a min/max date using a regular unix timestamp, and i noticed that the datetimepicker always disregards the passed Moment in UTC, and subtracts my zone offset.
Fiddle: http://jsfiddle.net/ypt78kt8/
Notice that the min moment should be 2015-07-26T06:05:26+00:00, but the widget allows me to select 2015-07-26T04:05:26 (I'm currently in GTM-3).
it actually sets the minDate to 2015-07-26T03:05:26-03:00, and that's not the passed moment.
The text was updated successfully, but these errors were encountered: