Within 2 hours of cooking or being removed from a warm appliance, leftovers should be refrigerated. This helps prevent the growth of bacteria. If the outdoor temperature is over 90°F, such as during a summer outdoor picnic, perishable foods should be discarded if left at room temperature for more than 1 hour.