In general, legislation is a terrible solution where simple personal responsibility, team culture, and "voting with your feet" work best.
In before Ontario has a net outflow of devs to places that don't micromanage what kinds of messages I can send to my employees and at what hour. Some of the closest bonds I've built with other engineers happened at 5AM on a Monday morning because we need to debug a server failure live in prod. All hands on deck! Raise the hacker flag and pass out the RedBull! Tallyho!