Repository navigation
feat(webui): show timestamps in the user's timezone instead of IST - #353
Open
thestumonkey wants to merge 1 commit into
Open
thestumonkey wants to merge 1 commit into
thestumonkey wants to merge 1 commit 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>
Contributor
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Contributor
Author
|
Think those failing tests are unrelated |
This branch has not been deployed
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 toAsia/Kolkata(IST). This shows them in the user's own timezone.backend/webui/src/utils/datetime.ts, plus a<DateTime>component.formatDateTime/formatTime/formatDatereplace the per-pagetoLocaleString(..., 'Asia/Kolkata')calls. ThePRECISE_*presets keep seconds on the queue, audit and log views.The Timeline pages already pass their own zone, so they are unchanged.
Test plan
npx vitest run src/utils/datetime.test.ts src/components/AutomationSettings.test.tsx src/pages/OperationalClarity.test.tsx: 17 passedtsc --noEmit: no errors in the changed files🤖 Generated with Claude Code