Skip to content

Fix protocol 6 (Beepwear Pro) setting time 1 hour fast in daylight savings time #314

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
Jul 27, 2023

Conversation

synthead
Copy link
Owner

Fixes #309!

This PR fixes a bug where the time on the Beepwear Pro (protocol 6) would be set one hour fast for a time in daylight savings time 🐛

To determine time zone, the UTC offset is used, which adds one hour during daylight savings. Due to this, some small logic was added to remove one hour from the UTC offset in daylight savings prior to looking up the protocol 6 time zone for the offset. The time on the watch naively followed this pattern also, when it didn't need to, which caused this bug.

@synthead synthead added bug Something isn't working protocol 6 Specific to protocol 6 labels Jul 27, 2023
@synthead synthead self-assigned this Jul 27, 2023
@synthead synthead merged commit cdb1e86 into main Jul 27, 2023
@synthead synthead deleted the fix-1-hr-fast-time-for-dst-in-protocol-6 branch July 27, 2023 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working protocol 6 Specific to protocol 6
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Protocol 6 (Beepwear Pro) is one hour fast on daylight savings time
1 participant