BangleApps icon indicating copy to clipboard operation
BangleApps copied to clipboard

[multitimer] Timer cannot be set over the day end

Open buzden opened this issue 1 year ago • 1 comments

Affected hardware version

Bangle 2

Your firmware version

2v25

The bug

The bug

When timer is being set to the point in time which must be in the next day, this timer is shown incorrectly (with negative hours and seconds) and fires at the wrong time (when the closest timer fires)

Expected behaviour

I expect a timer to fire after the given amount of time, while showing correct left time.

Steps to reproduce

Say when there is 23:40 of local time

  • open the app
  • set two timers: for 5 minutes and for 25 minutes with auto-removal after expiration
  • look at the displayed time and see that the second timer is shown as -24:41:-9 instead of 0:24:51
  • wait for the first timer to fire and see that the second (with indication 25 min) also fired, and removed afterwards

Installed apps

No response

buzden avatar Dec 11 '24 20:12 buzden

Thanks for the report - multitimer and the official alarm app both used the same scheduler library, did you see the issue with alarms too? (I notice multitimer has its own rendering, which explains the -24:41:-9 bug, which will be a separate fix to the scheduling bug)

bobrippling avatar Dec 20 '24 21:12 bobrippling

Will be closed by #4082 and partly https://github.com/espruino/BangleApps/commit/44e201326f78bb59ea90c018caf6ea6f89f10480

bobrippling avatar Dec 06 '25 18:12 bobrippling