Skip to content

Commit

Permalink
fix(timepicker): fix 12hour in 12/24 format (#5248)
Browse files Browse the repository at this point in the history
- Closes #5125
  • Loading branch information
FrancescoBorzi authored and Domainv committed Aug 7, 2019
1 parent b0a86eb commit b411130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timepicker/timepicker.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function parseHours(
return NaN;
}

return hour === hoursPerDayHalf && !isPM ? 0 : hour;
return hour;
}

export function parseMinutes(value: string | number): number {
Expand Down

0 comments on commit b411130

Please sign in to comment.