fix date bug when selecting todays date