Before you select the factory reset option for an old phone, make sure you've gone through these steps before its too late.
Go to Settings > Notifications > Advanced settings. Alternately, tap Schedule, then choose Turns on at custom time, Turns on ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results