3 ms·
How do you handle an alarm set for 02:30 on the date that the jumps _back_ from 03:00 to 02:00? How do you handle an alarm set for 02:30 on the date that the j
by dotancohen 5y ago
How do you handle an alarm set for 02:30 on the date that the jumps _back_ from 03:00 to 02:00?
How do you handle an alarm set for 02:30 on the date that the jumps _forward_ from 02:00 to 03:00?
- Izkata 5y agoAt least over here that first one is 2:00 -> 1:00
- pritambarhate 5y agoThose are invalid times. Your date time validation should report an error to the user. For recurring scheduled reminders, I would remind them at 1:00AM along with explanation why they are getting that reminder early. There is no way to automatically handle this to my knowledge. So it's an edge case one must handle.
- dotancohen 5y agoYou could argue that the case of the clock jumping forward is an invalid time. But the case of the clock jumping back is in fact a valid time, even if it is non-unique.