fixing date output for events that span midnight