Conversation
InterceptTime's global timezone preference only offered UTC, browser-local, or US zones -- no way to select SAST, and it defaulted to US/Eastern. Added Africa/Johannesburg (labelled SAST) as a selectable option and made it the default, since this deployment and its primary user are South Africa-based. Also fixed two clocks that bypassed InterceptTime entirely and hardcoded raw UTC display regardless of user preference: - map-utils.js's per-map HUD clock (top-right overlay) - gps.js's GPS-fix timestamp readouts (sidebar + visuals panel) Both now show the user's configured local time (SAST by default) with UTC appended for reference, rather than UTC-only. templates/layout/base.html's header clock (currently unused by any route, but defensively) was updated the same way for consistency.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
`InterceptTime` (the global timezone preference used across the app) only offered UTC / browser-local / US zones, defaulting to `US/Eastern`. Added `Africa/Johannesburg` (labelled SAST) as a selectable option in the settings modal and as the new default.
Fixed two clocks that bypassed `InterceptTime` entirely and always rendered raw UTC regardless of the user's preference:
Both now show local time (per `InterceptTime`, SAST by default) with UTC appended for reference, instead of UTC-only.
`templates/layout/base.html`'s header clock was fixed the same way for consistency, though no current route renders that template.
Non-SAST users are unaffected beyond the new default — anyone who already set a timezone preference in Settings keeps it (stored in `localStorage`); this only changes the out-of-the-box default and adds a previously-missing option.
Test plan
🤖 Generated with Claude Code