Skip to content

Fix day-only alarms never firing when night starts at midnight, version 8.0.11 - #10

Merged
bjorkert merged 1 commit into
devfrom
port/lf-845-midnight-night-start
Nov 22, 2026
Merged

bjorkert merged 1 commit into
devfrom
port/lf-845-midnight-night-start

Conversation

@bjorkert

Copy link
Copy Markdown
Member

With Night starts set to 00:00 (or any time before Day starts), the check that decides whether an alarm may fire treated the whole day as night, so alarms set to Day never went off. The alarm condition and the sound check now use one isNight on AlarmConfiguration, as on iOS. JVM tests cover the schedule and shouldFire for day and night alarms with a midnight night start. Version 8.0.11.

Port of loopandlearn/LoopFollow#845.

The alarm condition check and the sound check now share AlarmConfiguration.isNight, where night runs from Night starts up to the next Day starts. With Night starts at 00:00 a Day alarm fires during the day and is held back from midnight until Day starts. Version 8.0.11.
@bjorkert
bjorkert merged commit 9c3348b into dev Nov 22, 2026
@bjorkert
bjorkert deleted the port/lf-845-midnight-night-start branch November 22, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant