cryonics-institute / checkin

A Mobile+Web Suite That Lets Those You Love Know You're OK; A Dead Man's Switch for Your Phone
GNU General Public License v3.0
3 stars 1 forks source link

Simplify Timer and Listener Interval Calculation #87

Closed ghost closed 4 years ago

ghost commented 4 years ago

Firing of alerts depends on times before now. Transform now to midnight and find the difference. Then, add that difference to all the other times. That removes problems when the last alert time is before midnight and now is after midnight, which makes the calculations much simpler.