Good Grief! Display some common sense here!
When I was in Egypt fall of 2011, common sense told me that I needed to wear pants or long skirt to cover legs and long sleeved shirt and when in crowded street in non-tourist area, to cover my blonde hair with a scarf and my blue eyes with sunglasses, and to not look any men in the face or speak to them (shop-keepers were exceptions).
It was NOT because I wanted to submit to their religion, it was simply a common sense move for protection. Think of it a a sort of camouflage so as to not draw attention to myself.
I understand the dress codes, but making military conform to what they can eat or when they can eat or drink? It seems a bit of a stretch.