Fix datetime on click in calendar