We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3316f75 commit 1deba36Copy full SHA for 1deba36
1 file changed
src/frontend/src/utils/pipes.ts
@@ -168,6 +168,5 @@ export const meetingStartTimePipe = (times: number[]) => {
168
const time = times[0] * 60 + 10 * 60;
169
const hours = Math.floor(time / 60) % 24;
170
const displayHours = hours % 12 === 0 ? 12 : hours % 12;
171
- const ampm = hours >= 12 && hours < 24 ? 'pm' : 'am';
172
- return displayHours + ':00' + ampm;
+ return displayHours + ':00' + (time >= NOON_IN_MINUTES ? 'pm' : 'am');
173
};
0 commit comments