Skip to content

feat: Add 24-hour timestamp support#855

Open
huxcrux wants to merge 1 commit intopingdotgg:mainfrom
huxcrux:24-hour-timestamp
Open

feat: Add 24-hour timestamp support#855
huxcrux wants to merge 1 commit intopingdotgg:mainfrom
huxcrux:24-hour-timestamp

Conversation

@huxcrux
Copy link

@huxcrux huxcrux commented Mar 10, 2026

What Changed

Adds a 24-hour timestamp setting and applies it across chat, diffs, and plan timestamps. It also centralizes timestamp formatting and makes the setting persist safely across reloads.

Why

Timestamps were previously fixed to 12-hour format. Many users, especially outside the US, expect 24-hour time by default or strongly prefer it. This adds a simple preference and applies it consistently across the app without duplicating formatting logic.

UI Changes

Before: screenshot showing 12-hour timestamps in the chat UI
image

After: screenshot showing 24-hour timestamps in the same UI
image

Settings: screenshot showing the new Use 24-hour timestamps toggle in Settings
image

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Add 24-hour timestamp toggle to app settings and all timestamp displays

  • Adds a use24HourTimestamps boolean to AppSettingsSchema (default false) and a toggle in the Settings page under a new 'Time' section.
  • Introduces a timestampFormat.ts module with memoized formatTimestamp and formatShortTimestamp helpers that accept a use24Hour flag.
  • Propagates the setting through ChatView, MessagesTimeline, PlanSidebar, and DiffPanel so all message and plan timestamps respect the user's preference.
  • Fixes parsePersistedSettings to merge defaults with persisted values, so newer settings keys are preserved when loading older stored payloads.

Macroscope summarized 713c11a.

@coderabbitai
Copy link

coderabbitai bot commented Mar 10, 2026

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

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: b29443ac-9872-4e83-99f4-7496bad332db

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the vouch:unvouched PR author is not yet trusted in the VOUCHED list. label Mar 10, 2026
@huxcrux huxcrux changed the title Add 24-hour timestamp support feat: Add 24-hour timestamp support Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant