calendar datetime fix