I agree that 40 minutes in the heat of the day is too much in an unshaded area. At this time of year it's probably too much even if it is shaded.
My day care provides hats and also has spare hats available. Can you ask if they have any until you get one?
I'd keep an eye on how things go and investigate a new centre.