repair the date before check-in can be clicked