Set time to None if value is 'NaN'.