fixed desktop notifications
(was previously checking day change instead of period change)