Fix to suppress warning when getting CurrentTemperature. Added opt_warning to isDateInvalid()