After the expansion tank was replaced I have only had about 2 mins. or less of hot water in my shower.

The apt. maintance man has flushed, the hot water heater, and the heater/air, still only a min. or two to shower. The water gets cold then warm then cold if I stay in the shower. What's up. My air conditioner is cooler, but my water isn't hotter. Any help out there???