Skip to content

feat(webui): show timestamps in the user's timezone instead of IST - #353

Open
thestumonkey wants to merge 1 commit into
devfrom
fix/webui-user-timezone
Open

thestumonkey wants to merge 1 commit into
devfrom
fix/webui-user-timezone

Conversation

@thestumonkey

Copy link
Copy Markdown
Contributor

Summary

Timestamps across the WebUI and the ./services CLI were hard-coded to Asia/Kolkata (IST). This shows them in the user's own timezone.

  • Adds one display-timezone source: backend/webui/src/utils/datetime.ts, plus a <DateTime> component.
  • The zone is the user's saved timezone. If none is saved, it is the browser's zone. It updates when the Timeline saves a new zone.
  • formatDateTime / formatTime / formatDate replace the per-page toLocaleString(..., 'Asia/Kolkata') calls. The PRECISE_* presets keep seconds on the queue, audit and log views.
  • Recording context and chat source references send the display zone, not IST.
  • CLI operation timestamps use the host's local zone.

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 passed
  • tsc --noEmit: no errors in the changed files

🤖 Generated with Claude Code

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>
@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 36109214-cea8-4165-9a83-df95fa685bc5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@thestumonkey

Copy link
Copy Markdown
Contributor Author

Think those failing tests are unrelated

This branch has not been deployed

No deployments
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