Skip to content

Allow timezone override#525

Open
ostap-korkuna wants to merge 2 commits intoloopandlearn:devfrom
ostap-korkuna:chart_tz_selector
Open

Allow timezone override#525
ostap-korkuna wants to merge 2 commits intoloopandlearn:devfrom
ostap-korkuna:chart_tz_selector

Conversation

@ostap-korkuna
Copy link
Contributor

This change allows overriding the time zone used for the graph.

Backstory: When traveling for work and monitoring my son's numbers remotely, I get confused when the graph uses my time zone instead of his. I prefer to set it to his time zone, so it aligns with his sleep time, meal time, etc.

I added a setting under Graph Settings to override the graph time zone:

IMG_4594

For example, if I'm in London and my son is in San Francisco:

before
IMG_4593

after
IMG_4596

Note: When the time zone override is changed, markDirty() forces the time axis update. The pills on the graph points don't get updated immediately and require an app reload — this is consistent with how the graph behaves currently on the actual time zone changes, so I kept it that way.

@bjorkert bjorkert self-requested a review February 28, 2026 20:46
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