Skip to content

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

Closed
thestumonkey wants to merge 2 commits into
devfrom
feat/user-timezone-dates
Closed

thestumonkey wants to merge 2 commits into
devfrom
feat/user-timezone-dates

Conversation

@thestumonkey

@thestumonkey thestumonkey commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Timestamps across the WebUI and the ./services CLI 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(), plus PRECISE_DATE_TIME / PRECISE_TIME presets that keep seconds on queue, audit and log views.
  • components/DateTime.tsx — <DateTime value=… /> renders a <time> element with the full stamp on hover.
  • AuthContext sets the zone from user.timezone; the Timeline "use browser timezone" action updates it immediately.
  • 18 pages/components moved off inline toLocaleString('en-IN', { timeZone: 'Asia/Kolkata' }) and literal "IST" labels.
  • Recording context / organize-day requests and chat source refs send the display zone instead of IST.
  • CLI operation stamps use the host's local zone (docs/init-system.md updated).

Stored data is unchanged: timestamps are UTC, and the user's zone is the existing users.timezone IANA name.

Also adds k8s-manifests/secrets.yaml to .gitignore (separate commit), so deployment credentials cannot be committed by git 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 existing ReviewCursor.ts/reviewCursor.ts case clash.
  • New utils/datetime.test.ts (5 tests) passes. AutomationSettings and OperationalClarity tests updated to pin the zone instead of asserting IST.
  • ESLint: no new problems on touched files; new files are clean.
  • Remaining failures exist on the base branch without this change: MemoryLedger.test.tsx, Timeline.test.tsx.
  • Not yet checked in a running browser.

🤖 Generated with Claude Code

thestumonkey and others added 2 commits November 7, 2026 11:47
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>
@coderabbitai

coderabbitai Bot commented Nov 7, 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: ba86f1b3-2cd4-4a81-8500-545a8e8bfe4d

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

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

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

Opened by mistake on upstream; closing.

@thestumonkey
thestumonkey deleted the feat/user-timezone-dates branch November 7, 2026 12:06
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