TimePicker: Set time to to 23:59:59 when setting To time using calendar (#18595)

This commit is contained in:
Šimon Podlipský
2019-08-16 13:22:32 +02:00
committed by Torkel Ödegaard
parent 325fd29ea0
commit f3d1543e9f

View File

@@ -51,7 +51,7 @@ export class TimePickerPopover extends Component<Props, State> {
onToCalendarChanged = (value: DateTime) => {
value.set('h', 23);
value.set('m', 59);
value.set('s', 0);
value.set('s', 59);
this.setState({ to: value });
};