That's shocking. No manager I've ever worked for had this kind of mentality. If you needed to show up late or leave early, as long as you were getting your tasks done for the week, it was fine. Forcing people to stay until 6 or 7 is the fastest way to get developers to burn out.