Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Corrected the meridian threshold when determining if toggling should be allowed in the timepicker. #4435

Closed
wants to merge 1 commit into from

Conversation

kmccaw
Copy link
Contributor

@kmccaw kmccaw commented Sep 17, 2015

Edited the noToggleMeridian method in the timepicker directive to correctly compare against 12 (instead of 13) when determining if the resulting time should be compared against the minimum or the maximum. If the selected time was after noon, the resulting time after toggling would be in the morning of the same day, and should be compared against the minimum and not the maximum.

…rectly compare against 12 (instead of 13) when determining if the resulting time should be compared against the minimum or the maximum. If the selected time was after noon, the resulting time after toggling would be in the morning of the same day, and should be compared against the minimum and not the maximum.
@wesleycho
Copy link
Contributor

I took a harder look at this, and this LGTM. Thanks for this catch!

@wesleycho wesleycho closed this in 09ad740 Oct 29, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants