I recently witnessed a pilot drinking a beer at a bar in an airport. He had the uniform shirt and pants but no tie, ID, wings, bars etc. However, from the shirt and pants as well as his luggage and stickers on his chart case, it was obvious he was a pilot. The appearance was that he had just gotten off of duty and going home (hopefully as a ticketed passenger and not as a jumpseater)
I'm not passing judgment as I am not sure one way or the other. This scene just made me wonder if this was proper.