fix some more datetime format crashes