
Room under 90°F (32°C): max time out
2 hours
Room above 90°F (32°C): max time out
1 hour
Danger zone, where bacteria multiply fastest
40°F to 140°F
Fastest doubling time of bacteria in that zone
20 minutes

The USDA says perishable food must not stay out of the fridge for more than 2 hours. Above 90°F, such as a summer picnic or a car, the limit halves to 1 hour. The reason is the danger zone: between 40°F and 140°F (4°C to 60°C) bacteria can double in as little as 20 minutes. After 2 hours the count can be high enough to cause illness, even when the food looks and smells normal.
Smell and taste are not a test. The bacteria that cause most food poisoning do not change how food looks or smells. If food passed the time limit, bin it, even if it seems fine.