Skip to content

Send null timezone at login so account zone isn't overwritten (#29) - #32

Merged
rwestergren merged 1 commit into
mainfrom
user-tz
Aug 2, 2026
Merged

Send null timezone at login so account zone isn't overwritten (#29)#32
rwestergren merged 1 commit into
mainfrom
user-tz

Conversation

@rwestergren

Copy link
Copy Markdown
Owner

The login request's timezone field is a write, not a hint: sending a non-null zone overwrites the account's server-side timezone on every login (verified against the live API). Older builds hardcoded "America/New_York", silently resetting every user's account zone to Eastern and poisoning the account-timezone stamping added in #27.

Send null instead, which leaves the account setting intact and lets the response report the real zone. Add a CRONOMETER_ACCOUNT_TZ override that takes precedence over both the response and a cached session, as an escape hatch for accounts whose zone was already clobbered.

The login request's timezone field is a write, not a hint: sending a non-null zone overwrites the account's server-side timezone on every login (verified against the live API). Older builds hardcoded "America/New_York", silently resetting every user's account zone to Eastern and poisoning the account-timezone stamping added in #27.

Send null instead, which leaves the account setting intact and lets the response report the real zone. Add a CRONOMETER_ACCOUNT_TZ override that takes precedence over both the response and a cached session, as an escape hatch for accounts whose zone was already clobbered.
@rwestergren
rwestergren merged commit 1b11f99 into main Aug 2, 2026
1 check passed
@rwestergren
rwestergren deleted the user-tz branch August 2, 2026 13:39
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