I work in Egypt and it hits 40+ in the summer (max 50 degrees last year - ooof!) so hydration is very important - especially because it's such a dry heat. We recommend at least 5 litres of water per day in the summer, and the boats are plenty stocked with water.
There has been much debate about coffee/tea but having a good cup of either to kickstart you in the morning is no big deal; I understand that your average cup of coffee is actually a net hydrator and therefore nothing to worry about and anyway - it's a good start to the morning; diving doesn't have to mean total abstinence from the finer things in life.
In the hot, hot summer with the oven baked desert winds I drink a 500ml bottle of water with rehydration salts last thing before bed, and again first thing in the morning. TSandM would have better knowledge, but I have been told that we re-hydrate better during sleepy time at night than we do during the day.
I won't take the attitude that "if you don't drink water you can't dive", but I am always on the lookout for symptoms that might determine whether or not somebody should participate in a dive - we're all grown up now and I'm a dive instructor, not a personal physician and I don't see it as my responsibility to regiment the diet of each individual customer. If I can see that somebody is showing signs then yes, I will stop them from diving and of course look after them, but people have to take responsibility for themselves.
In my location, the biggest problem is beer. I like a good drink, but make a point of ensuring I am properly hydrated for work the next day. Sadly, many people don't. They stay out late, get drunk, turn up to the dive centre with a bad hangover and then - well, the situation gets a bit more complicated.
For deep/tec diving, the risks are more significant, but for basic recreational diving, a modicum of caution and common sense goes a long way.
Cheers
C.