The glaze contains a lot of moisture which evaporates when the doughnuts are left at room temperature, especially in direct sunlight. To avoid this, wrap them with parchment paper and then a cling film or, rather, keep the doughnuts in an airtight container that seals perfectly, keeping all the air out.