Skip to content

Commit

Permalink
Merge pull request #8383 from Oxc3/bug-TimePickerPresenter-wrong-time…
Browse files Browse the repository at this point in the history
…-at-12PM

Fix 12PM bug in TimePickerPresenter
  • Loading branch information
jmacato authored and danwalmsley committed Jul 6, 2022
1 parent 1c13b70 commit 9d05161
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ protected override void OnConfirmed()

if (ClockIdentifier == "12HourClock")
{
hr = per == 1 ? hr + 12 : per == 0 && hr == 12 ? 0 : hr;
hr = per == 1 ? (hr == 12) ? 12 : hr + 12 : per == 0 && hr == 12 ? 0 : hr;
}

Time = new TimeSpan(hr, min, 0);
Expand Down

0 comments on commit 9d05161

Please sign in to comment.