Repository navigation
feat(webui): show timestamps in the user's timezone instead of IST - #351
thestumonkey wants to merge 2 commits into
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>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
Opened by mistake on upstream; closing. |
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