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

Fix the initial hour on iOS #62

Merged
merged 1 commit into from May 31, 2022

Conversation

saifb
Copy link
Contributor

@saifb saifb commented May 30, 2022

Issue details here: #54

Replicating the bug

  • Show time picker widget with the following values
    • iosStylePicker set to true
    • value of TimeOfDay in the P.M. time period (ie: 4 PM)
  • Swipe on the "hours" wheel -> Notice am/pm change

Why does this happen

Notice that when you adjust the hours, the "am" text gets selected. This is because the hour is initialized with respect to the time period (meaning, out of 12 instead of 24). However, the wheel itself has 24 options, not 12.

How to fix this

Simply disregrard the time period when calculating the "initial hour" for the DisplayWheel

@saifb
Copy link
Contributor Author

saifb commented May 30, 2022

@TheGlorySaint can you take a look?

@TheGlorySaint
Copy link
Collaborator

@all-contributors please add @saifb for code

@allcontributors
Copy link
Contributor

@TheGlorySaint

I've put up a pull request to add @saifb! 🎉

@TheGlorySaint TheGlorySaint merged commit f278990 into subhamayd2:develop May 31, 2022
@TheGlorySaint
Copy link
Collaborator

Thank You @saifb for your commit and your fix for that issue. I have added you as a contributor for code.

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

Successfully merging this pull request may close these issues.

None yet

2 participants