Skip to content

Add a user preference for the displayed date format#2110

Open
frankrousseau wants to merge 1 commit into
cgwire:mainfrom
frankrousseau:fix-936-date-format-preference
Open

Add a user preference for the displayed date format#2110
frankrousseau wants to merge 1 commit into
cgwire:mainfrom
frankrousseau:fix-936-date-format-preference

Conversation

@frankrousseau

Copy link
Copy Markdown
Contributor

Problems

Solutions

  • Add a Date format combobox to the profile Information card (YYYY-MM-DD default, DD/MM/YYYY, MM/DD/YYYY), persisted in the Person.data JSONB field through the existing profile save path — same pattern as the 12-hour clock PR for Option for 12-hour time #1929, including the intentional shared data passthrough in updatePerson (src/store/api/people.js) so both branches merge cleanly
  • New formatDisplayDate, formatShortDate and formatVerboseDate helpers in src/lib/time.js, exposed through formatListMixin / useFormat() and useTime(), applied to task tables (task page, task lists, todos), time logs, comment short dates, entity chat and news feed day headers, and the timesheet header — storage, API and CSV export formats stay ISO

Add a per-user preference to render dates as DD/MM/YYYY or
MM/DD/YYYY instead of the fixed ISO format. The preference is
stored in the person record generic data field, so it follows the
user across browsers without any backend change, and is saved
through the existing profile save path. Task tables, task detail
dates, time logs, comment short dates, chat and news feed day
headers honour it via the new formatDisplayDate, formatShortDate
and formatVerboseDate helpers. CSV exports keep the ISO format.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

Ability to display non-US day/date format

1 participant