This echoes the mindset of some developers on my team perfectly:

From time to time there is a romantic notion of teams pulling crazy hours and working all-nighters frequently. The idea is that you can cheat the night (or morning, for that matter) and continue coding, writing, or doing whatever it is you that do. Sometimes this is driven by maniacal managers, but other times it comes from within.

In fact, every time I’ve come across some appalling code and mentioned it to the developer who wrote it, the standard reply seems to be “Oh yeah, I must’ve written that 3 in the morning!” as if it’s acceptable to continue working until that hour and churning out shit code which then comes back to haunt other members of the team.

As Rachel says, Don’t feed the stupid hour. It never ends well.