Skip to content

Commit

Permalink
Merge pull request #1491 from NYCPlanning/bug/14356-12-am-pm-error
Browse files Browse the repository at this point in the history
14356 Inaccurate AM/PM time designation when scheduling a Borough President Hearing
  • Loading branch information
dhochbaum-dcp authored Aug 7, 2023
2 parents 523f50f + 3948ff6 commit 42325a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/app/components/date-time-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export default class DateTimePickerComponent extends Component {
if (this.timeOfDay === 'PM') {
const pmHour = parseInt(this.hour, 10) === 12 ? 12 : parseInt(this.hour, 10) + 12;
numberHour = pmHour;
} else if (parseInt(this.hour, 10) === 12) {
numberHour = 0;
} else {
numberHour = this.hour;
}
Expand Down

0 comments on commit 42325a2

Please sign in to comment.