can you leave a peanut butter and jelly sandwich out overnight?
It will spoil or rot in just a few hours if the temperature is very warm. The cooler the temperature the longer it will take to spoil. If it's kept refrigerated it could remain unspoiled for days, possibly even weeks if the bread was fresh.