If you are not going to set the yogurt in a larger container filled with ice water, you shouldn't leave it out for more than 2 hours. If the temperature is quite hot (say, 90 degrees or so), cut that down to just 1 hour. That said, nesting your serving bowl in a larger bowl filled with ice water can help maintain food-safe temperatures for longer.