Skip to content
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

datetime: default date when intervals are in use #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexgo91
Copy link

@alexgo91 alexgo91 commented Sep 16, 2020

The timepicker displays today's date&time as default when its initial value is empty.
When using intervals for hours/minutes/seconds - today's time might not comply with these intervals, which leads to unexpected behaviors.

E.g. configure AnyPicker to use intervals: { h: 1, m: 15 }, and assume that the time now is 15:23.
The previous behavior will lead to bugs since the minutes value is not 0/15/30/45.

I suggest that the timepicker will use zeros when the hours/minutes/seconds value doesn't fit the interval.

Consider the configure intervals when defaulting to today's date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant