The library reset the time set when the date is changed. Then it was not possible to set the time then set the date and expect the widget to close since the time will be reset to the default value. Instead we use the library behaviour and add a 'close' button for the datetime widgets.