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

如果同时设置了日期和范围 二月份显示和数据会出BUG 需要手动切换一次月份才正常 #968

Open
qwwuyu opened this issue Feb 5, 2021 · 4 comments

Comments

@qwwuyu
Copy link

qwwuyu commented Feb 5, 2021

.setDate(selectedDate) //导致条件进入下面方法块
.setRangDate(startDate, endDate)//导致startDay不等于1

原因在WheelTime352行左右

            // 判断大小月及是否闰年,用来确定"日"的数据
            if (list_big.contains(String.valueOf(month + 1))) {
                wv_day.setAdapter(new NumericWheelAdapter(1, 31));
            } else if (list_little.contains(String.valueOf(month + 1))) {
                wv_day.setAdapter(new NumericWheelAdapter(1, 30));
            } else {
                // 闰年 29,平年 28
                wv_day.setAdapter(new NumericWheelAdapter(startDay, leapYear ? 29 : 28));
            }

new NumericWheelAdapter(startDay, leapYear ? 29 : 28)应该写成
new NumericWheelAdapter(1, leapYear ? 29 : 28)

(>﹏<)

@dfc521
Copy link

dfc521 commented Sep 29, 2021

我也遇到了

@LinuxAndOracle
Copy link

2023-02-03,在这个时间点这个问题还是存在的

@LibertyJiang
Copy link

2023-02-06 也是有这个问题

@qwwuyu
Copy link
Author

qwwuyu commented Feb 8, 2023

2023-02-03,在这个时间点这个问题还是存在的

2023-02-06 也是有这个问题

作者不更新了,问题当然一直还存在,自己下载源码依赖或者自己重新打aar解决,我之前是下载仓库按上述方式打了aar解决。

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