Revert "Revert "Rewrite Quiet Hours (3/3)""

This reverts commit 488951e806631319262ab825b36f872e8fe6996b.
Revert "Revert "Some missing quiet hours edits""

This reverts commit 0b1e1f53475ba4b1c72df02710021928173e92cb.