InfiniTimeOrg / InfiniTimeOrg/InfiniTime

Week number on Casio watch face is off by one

Open
#2,402 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
3.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Verification
  • I searched for similar bug reports (including closed issues) and found none was relevant.
What happened?

The calendar week number on the Casio watch face is always one too low.

What should happen instead?

The week number should start at 1 at the beginning of the year, not 0.

Reproduction steps
  1. Select Casio watch face
  2. Observe incorrect week number in top left corner of the watch face
More details?

Also happened on v1.15, but so far I've just always added one in my mind to get the correct number.

Version

v1.16.0

Companion app

Gadgetbridge v0.86.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Casio watch-face implementation and the calendar week-number calculation, then reproduce the display on v1.16.0. Done means the week number shown in the top-left corner starts at 1 at the beginning of the year rather than displaying 0 or a value one too low.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.