You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just bumped into this page as I need a date+time picker and I am sure going to try this one as it looks great. While playing around with the examples I noticed that the example "Hours, Minutes, Seconds in steps" has some issue with displaying the nearest correct time when pressing the now button
suppose the system time is: 04-july-2011 09:36:54 GMT+1 with daylight saving
When I press the now button, the date time from the time picker is : 04-july-2011 10:40:50, the hour is rounded up, the minutes are rounded up, and the seconds are roundend down. Strictly looking at the steps, this would make sense. However 10:00:00 is the nearest time that matches the steps AND the current system time.
In case the system time is 10:07:54, the now button will make it show 10:10:50 where I expected 10:10:00, as this is closer to the real system time. When rounding down is done e.g. 10:01:30, the closest time would be 10:00:50.
Is this something that can be improved ?
The text was updated successfully, but these errors were encountered:
Hi,
I just bumped into this page as I need a date+time picker and I am sure going to try this one as it looks great. While playing around with the examples I noticed that the example "Hours, Minutes, Seconds in steps" has some issue with displaying the nearest correct time when pressing the now button
suppose the system time is: 04-july-2011 09:36:54 GMT+1 with daylight saving
When I press the now button, the date time from the time picker is : 04-july-2011 10:40:50, the hour is rounded up, the minutes are rounded up, and the seconds are roundend down. Strictly looking at the steps, this would make sense. However 10:00:00 is the nearest time that matches the steps AND the current system time.
In case the system time is 10:07:54, the now button will make it show 10:10:50 where I expected 10:10:00, as this is closer to the real system time. When rounding down is done e.g. 10:01:30, the closest time would be 10:00:50.
Is this something that can be improved ?
The text was updated successfully, but these errors were encountered: