Fix for situations like quiet hours from 9am to 5pm
Merge branch 'hotfix/quiet_hours'