โ˜… Determining the start of the next business day in Oh Dear

2 ยท Freek Van der Herten ยท Feb. 8, 2021, 10:05 a.m.
When a site is down, Oh Dear sends a notification every hour. Since last year, our notifications can be snoozed for a fixed amount of time (5 minutes, 1 hour, 4 hours, one day).In the evenings and weekends, our users might not want to receive repeated notifications. That's why we've added a nice human touch: all notifications can now be snoozed until the start of the next workday.In this blog post, I'd like to share some of the code that powers this feature. We'll focus on how the start of the n...