Hi, I'm having a look at the scheduler (apps/sched/lib.js) for dated alarms (i.e. where alarm.date is given).
Since the time of the alarm is relative to the current time zone, shouldn't the date of the alarm also be?
If so, I think we should change the code there from:
==time.toISOString().substr(0,10)
to:
==time.toLocalISOString().substr(0,10)
Would that make sense?
There's a note on toLocalISOString that says the following, but I think this note applies to neither Bangle versions, right, so it shouldn't break anything?
This is not available in devices with low flash memory
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi, I'm having a look at the scheduler (apps/sched/lib.js) for dated alarms (i.e. where alarm.date is given).
Since the time of the alarm is relative to the current time zone, shouldn't the date of the alarm also be?
If so, I think we should change the code there from:
to:
Would that make sense?
There's a note on toLocalISOString that says the following, but I think this note applies to neither Bangle versions, right, so it shouldn't break anything?