Skip to content

Commit d2e7e54

Browse files
committed
Fix #576, time portion of datetime picker incorrect for 12am and 12pm.
1 parent 2ee1c1d commit d2e7e54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controls/dateTimePicker/DateTimePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class DateTimePicker extends React.Component<IDateTimePickerProps, IDateT
125125
}
126126

127127
if (this.props.timeConvention !== TimeConvention.Hours24) {
128-
if (hoursSplit[1] && hoursSplit[1].toLowerCase().indexOf("pm") !== -1) {
128+
if (hoursSplit[1] && hoursSplit[1].toLowerCase().indexOf("am") !== -1) {
129129
hours += 12;
130130
if (hours === 24) {
131131
hours = 0;

0 commit comments

Comments
 (0)