Add settings to enable 24-hour time format and customizable date format (#2347)
authorGimle Larpes <97182804+GimleLarpes@users.noreply.github.com>
Sun, 27 Jul 2025 12:13:00 +0000 (15:13 +0300)
committerGitHub <noreply@github.com>
Sun, 27 Jul 2025 12:13:00 +0000 (22:13 +1000)
commit9183fd66b2dc50cc113d387ca246eb45b96c448d
tree31307f488c9849442c03f8802714aea357ff5de2
parent67b05eeb09c8019fc67564f65ebca3d4b37653c6
Add settings to enable 24-hour time format and customizable date format (#2347)

* Add setting to enable 24-hour time format

* added hour24Clock to TimeProps

* Add incomplete dateFormatString setting

* Move 24-hour  toggle to Appearance

* Add "Date & Time" subheading, cleanup after merge

* Add setting for date formatting

* Fix minor formatting and naming issues

* Document functions

* adress most comments

* add hint for date formatting

* add support for 24hr time to TimePicker

* prevent overflow on small displays
17 files changed:
src/app/atoms/time/Time.jsx
src/app/components/message/Time.tsx
src/app/components/room-intro/RoomIntro.tsx
src/app/components/time-date/TimePicker.tsx
src/app/features/message-search/MessageSearch.tsx
src/app/features/message-search/SearchResultGroup.tsx
src/app/features/room/RoomTimeline.tsx
src/app/features/room/jump-to-time/JumpToTime.tsx
src/app/features/room/message/Message.tsx
src/app/features/room/room-pin-menu/RoomPinMenu.tsx
src/app/features/settings/devices/DeviceTile.tsx
src/app/features/settings/general/General.tsx
src/app/hooks/useDateFormat.ts [new file with mode: 0644]
src/app/pages/client/inbox/Invites.tsx
src/app/pages/client/inbox/Notifications.tsx
src/app/state/settings.ts
src/app/utils/time.ts