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

日期显示有问腿 #6

Open
zuixianjian opened this issue Sep 21, 2019 · 0 comments
Open

日期显示有问腿 #6

zuixianjian opened this issue Sep 21, 2019 · 0 comments

Comments

@zuixianjian
Copy link

            @Override
            public PickerView.PickerItem getItem(int index) {
                final Calendar tempCalendar = (Calendar) startDate.clone();
                tempCalendar.add(Calendar.DAY_OF_YEAR, index);
                return new PickerView.PickerItem() {
                    @Override
                    public String getText() {
                        if (TimeUtils.isToday(tempCalendar)) {
                            return "今天";
                        }
                        return TimeUtils.date(tempCalendar);
                    }
                };
            }

这个地方需要修改,否则日期显示不准确

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

1 participant