Skip to content

Commit

Permalink
Set TimePicker.Time seconds to zero when UseSeconds is False
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualMelon committed Oct 11, 2024
1 parent 7f2cd07 commit cda7d67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ protected override void OnConfirmed()
hr = per == 1 ? (hr == 12) ? 12 : hr + 12 : per == 0 && hr == 12 ? 0 : hr;
}

SetCurrentValue(TimeProperty, new TimeSpan(hr, min, sec));
SetCurrentValue(TimeProperty, new TimeSpan(hr, min, UseSeconds ? sec : 0));

base.OnConfirmed();
}
Expand Down

0 comments on commit cda7d67

Please sign in to comment.