Skip to content

agenda: fix all-day event offsets in clock info. #3797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

randyheydon
Copy link
Contributor

All-day events synchronized from Gadgetbridge always start at midnight UTC, which causes them to display as different days depending on time zone offset (specifically negative offsets display the date as one day early). This was previously fixed in the agenda app in pull request #3695 (commit bcf88c3). This commit replicates that fix in the clockinfo that agenda provides.

Tested this on my Bangle2 with time zone offsets that are negative, positive, and zero.

All-day events synchronized from Gadgetbridge always start at midnight UTC,
which causes them to display as different days depending on time zone offset
(specifically negative offsets display the date as one day early).  This was
previously fixed in the agenda app in pull request espruino#3695 (commit bcf88c3).
This commit replicates that fix in the clockinfo that agenda provides.
@bobrippling
Copy link
Collaborator

LGTM, thanks!

@bobrippling bobrippling merged commit 42a81ef into espruino:master Apr 11, 2025
1 check passed
@randyheydon randyheydon deleted the agenda_clkinfo_allday branch April 12, 2025 00:17
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.

2 participants