There was until recently an official USN uniform instruction that authorized at regional command word, a pair of shorts for the working white and general utilities uniform. As the working whites were being phased out along with the utilities so were they are being removed from the instructions. I will have to dig it up, but i had pictures of China station and Cavitie sailors standing shore patrol in working whites with shorts on in the summer time. These shorts were locally manufactured from taking the long pants and having the legs tailors to just above knees. Dungarees did not have a short pant option. So as more sailors joined the Navy during the war the option in general usage just phased itself out since most places didn't get warm enough to require or make it worthwhile to have as an option shorts. As for the US Army and US Marine Corps, well as far as I know and have been able to research; they have not had short pant option in their uniform instructions. Most of their uniforms had an ability to breath and work moderately well in warmer climates. So it wasn't something that occurred. Remember even with the territories of Guam, Philippines, and some of the other Micronesia islands; where the major US Army and US Marine bases where, again most of the time the temperatures and size of the bases did not make it a requirement to modify (or even local modify) the uniform instruction. The only exception was the US Marine Corps, some of the territorial units in America Soma had a Sarong as an option for the Samoan Natives, and only Samoan natives were authorized to wear a red sarong with a khaki top that had thier rank stitched on it.
Take my word for it. You never want to be involved in an “International Incident”.