Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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. Comment |
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

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

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

Checklist
Note
Add 24-hour timestamp toggle to app settings and all timestamp displays
use24HourTimestampsboolean toAppSettingsSchema(defaultfalse) and a toggle in the Settings page under a new 'Time' section.formatTimestampandformatShortTimestamphelpers that accept ause24Hourflag.ChatView,MessagesTimeline,PlanSidebar, andDiffPanelso all message and plan timestamps respect the user's preference.parsePersistedSettingsto merge defaults with persisted values, so newer settings keys are preserved when loading older stored payloads.Macroscope summarized 713c11a.