-
Notifications
You must be signed in to change notification settings - Fork 419
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
[Bug] time from start and end date ignored in lightweighted datetimepicker #2573
Comments
This is problematic because the time spinner options are the same for every date. E.g. suppose you want StartDate=Jan. 1, 2019 8PM, EndDate=Jan 2, 2019 7AM. It sounds like your intention is for the user to only be able to choose times on or after 8PM on Jan 1, and on or before 7AM on Jan 2. However, that's not really feasible, since the time options are independent of the date options. They are generated at the time that the component is created. Changing the date in the date spinner doesn't affect the options in the time spinner, and making it do so presents some UX challenges. One possibility might be to add separate methods for startHour and endHour, but this also adds some complexity. E.g. If we prevent the time spinner from representing any time, then some dates can't be represented in the widget. This edge case is more intrusive than for min/max dates because timezones might cause dates that originally could be represented, to no longer be representable. Can you describe the use case? |
The use case is pretty simple. I want the user to be able to inform my app of the date and time he is expecting to leave a specific place. Since he can't stay in this place more than a given numbers of days, the minimumDate and maximumDate of the Picker should be restricted by the current date and time and the place entry date and time + this max number of days respectively. |
I have added Will be part of next update. |
Currently, when setting the StartDate or EndDate of a lightweighted datetime picker (i.e a DateTimeSpinner3D), the time of these dates boundaries are ignored.
For exemple, if the current date is Sat Oct 6 and it is 10:00 AM, and I set this current date as startDate, I can still pick Sat Oct 6 3:00 AM in the picker.
It would be nice if the DateTime picker could take into account both the time and the date of a date object provided as boundary for the picker (and not just the date)
The text was updated successfully, but these errors were encountered: