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

if initialDateTime and minDateTime is same, format 'yyyy-MM-dd HH:mm' have bug #125

Open
Wait1997 opened this issue Aug 12, 2020 · 4 comments

Comments

@Wait1997
Copy link

如果现在的时间是晚上19:18,那么格式化为 yyyy-MM-dd HH:mm 后 19时的minute将只有01到41

@tanlianghao
Copy link

同样有遇到,有解决办法吗

@ahmadkhedr
Copy link

Same Here

@ahmadkhedr
Copy link

I solved it to prevent the picker from opening if the min and max dates are the same...it works fine and it does the purpose because there is no need to open the date picker if you can not choose any dates but one

if(minDateTime.compareTo(maxDateTime) < 0){
 DatePicker.showDatePicker(
       context,
..............
 );
}

Change the minDateTime & max DateTime with the variable names you are using in the code.

@carrot1994
Copy link

如果选择当前到未来一个月的时间段,那么当前时间跟minDateTime势必是一样的。这样的话,分钟会显示为0而不会显示当前分钟数,请问该怎么办呢

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

No branches or pull requests

4 participants