It probably depends on the location/culture but I've never seen issues with that. I've also, as far as I recall, never signed a contract that specified hours/week or a particular schedule. I've worked with people who came in at 5am to beat rush hour and would leave early and people who came in much later and would stay late and anything in between. Tech workers' time is generally considered flexible which is why they don't usually get paid overtime either. If you're ever at a point where HR is looking at how many hours you "punched in" then there's probably other problems. I would say that if your value is measured by "hours" that would be a red flag already. Probably no shortage of workplaces like that but I wouldn't want to work there as long as I have choice.
EDIT: p.s. if it wasn't clear I no longer do the 1pm->1am schedule. That was when I was young with no other commitments. It's not the healthiest schedule ;) Now my hours are more conventional but still reasonably flexible. I work for a large tech company and no one cares when you come in or leave as long as the work gets done.