Skip to content

Commit 966a12f

Browse files
committed
fix for Hours dropdown to display AM/PM with a space
1 parent c0292d3 commit 966a12f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/controls/dateTimePicker/HoursComponent.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ export default class HoursComponent extends React.Component<IHoursComponentProps
104104
} else {
105105
// 12 hours time convention
106106
if (i === 0) {
107-
digit = `12${amDesignator}`;
107+
digit = `12 ${amDesignator}`;
108108
} else if (i < 12) {
109-
digit = `${i}${amDesignator}`;
109+
digit = `${i} ${amDesignator}`;
110110
} else {
111111
if (i === 12) {
112-
digit = `12${pmDesignator}`;
112+
digit = `12 ${pmDesignator}`;
113113
} else {
114-
digit = `${(i % 12)}${pmDesignator}`;
114+
digit = `${(i % 12)} ${pmDesignator}`;
115115
}
116116
}
117117
}

0 commit comments

Comments
 (0)