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

setDefaultTime默认时间显示错误 #39

Closed
TxcA opened this issue Oct 25, 2021 · 0 comments
Closed

setDefaultTime默认时间显示错误 #39

TxcA opened this issue Oct 25, 2021 · 0 comments

Comments

@TxcA
Copy link

TxcA commented Oct 25, 2021

            /**
             * `setDefaultTime` 显示错误
             * 正确的应该为12:30:00, 但是默认显示的是12:50:00
             *
             * 复现条件:
             * 1. setDefaultTime 和 setMinTime 同时大于当前时间
             * 2. setDefaultTime - setMinTime 小于一小时
             */
            CardDatePickerDialog.builder(this)
                .setTitle("Error Time")
                .setDisplayType(DateTimeConfig.HOUR, DateTimeConfig.MIN, DateTimeConfig.SECOND)
                .setBackGroundModel(CardDatePickerDialog.CARD)
                .showBackNow(false)
                .setWrapSelectorWheel(false)
                .showFocusDateInfo(false)
                // 1640925000000 = UTC+8 2021-12-31 12:30:00.000
                .setDefaultTime(1640925000000)
                // 1640922000000 = UTC+8 2021-12-31 11:20:00.000
                .setMinTime(1640922000000)
                .build().show()
loper7 added a commit that referenced this issue Nov 18, 2021
优化选择周功能
@loper7 loper7 closed this as completed Nov 18, 2021
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

2 participants