Repository navigation
feat(webui): show timestamps in the user's timezone instead of IST - #31
Merged
Merged
Conversation
Timestamps across the WebUI and the services CLI were hard-coded to Asia/Kolkata. Add one display-timezone authority (utils/datetime.ts) and a <DateTime> component. The zone follows the user's saved timezone, falling back to the browser's, and updates when the Timeline saves a new zone. - formatDateTime/formatTime/formatDate replace per-page toLocaleString calls; PRECISE_* presets keep seconds on queue, audit and log views - recording context and chat source refs send the display zone, not IST - CLI operation stamps use the host's local zone Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file holds deployment credentials and must never be committed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Timestamps across the WebUI and the
./servicesCLI were hard-coded to IST (Asia/Kolkata). They now follow the signed-in user's saved timezone, falling back to the browser's.utils/datetime.ts— one display-timezone authority:formatDateTime,formatTime,formatDate,useDisplayTimezone(), plusPRECISE_DATE_TIME/PRECISE_TIMEpresets that keep seconds on queue, audit and log views.components/DateTime.tsx—<DateTime value=… />renders a<time>element with the full stamp on hover.AuthContextsets the zone fromuser.timezone; the Timeline "use browser timezone" action updates it immediately.toLocaleString('en-IN', { timeZone: 'Asia/Kolkata' })and literal "IST" labels.docs/init-system.mdupdated).Stored data is unchanged: timestamps are UTC, and the user's zone is the existing
users.timezoneIANA name.Also adds
k8s-manifests/secrets.yamlto.gitignore(separate commit), so deployment credentials cannot be committed bygit add -A.Not in this PR
Backend request defaults still say
"Asia/Kolkata"when a client omits a zone (source_search_routes.py,chat_sources.py,timeline/recording_sessions.py). The WebUI now always sends one.Testing
tsc --noEmit: clean apart from the existingReviewCursor.ts/reviewCursor.tscase clash.utils/datetime.test.ts(5 tests) passes.AutomationSettingsandOperationalClaritytests updated to pin the zone instead of asserting IST.MemoryLedger.test.tsx,Timeline.test.tsx.🤖 Generated with Claude Code