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

修复select回调时间不符合默认预期问题 #753

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.DS_Store

# built application files
*.apk
*.ap_
Expand Down Expand Up @@ -30,4 +32,4 @@ build
*.iws
*.ipr
*~
*.swp
*.swp
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ private void setTime() {
year = calendar.get(Calendar.YEAR);
month = calendar.get(Calendar.MONTH);
day = calendar.get(Calendar.DAY_OF_MONTH);
hours = calendar.get(Calendar.HOUR_OF_DAY);
minute = calendar.get(Calendar.MINUTE);
seconds = calendar.get(Calendar.SECOND);
hours = mPickerOptions.type[3] ? calendar.get(Calendar.HOUR_OF_DAY) : 0;
minute = mPickerOptions.type[4] ? calendar.get(Calendar.MINUTE) : 0;
seconds = mPickerOptions.type[5] ? calendar.get(Calendar.SECOND) : 0;
} else {
year = mPickerOptions.date.get(Calendar.YEAR);
month = mPickerOptions.date.get(Calendar.MONTH);
Expand Down