Add time format preference with system, 12, and 24 options#7616
Open
larouxn wants to merge 1 commit intosignalapp:mainfrom
Open
Add time format preference with system, 12, and 24 options#7616larouxn wants to merge 1 commit intosignalapp:mainfrom
larouxn wants to merge 1 commit intosignalapp:mainfrom
Conversation
3c27657 to
9d476bc
Compare
9d476bc to
afae456
Compare
d4a85f4 to
c9388b4
Compare
c9388b4 to
967b1ef
Compare
967b1ef to
e757586
Compare
Author
e757586 to
7bb9f9d
Compare
7bb9f9d to
9e48465
Compare
9e48465 to
f7d0d3d
Compare
|
Please approve? I need this! |
f7d0d3d to
24f8676
Compare
Author
24f8676 to
f5ddc3b
Compare
f5ddc3b to
66402ee
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


First time contributor checklist:
Contributor checklist:
mainbranchpnpm run readypasses successfully (more about tests here)Description
This pull request aims to add a
Time formatpreference withsystem,12, and24options so that users can either leave it up to their locale to specify the time format (system) or manually select either12or24themselves. The preference should appears directly belowLanguageand aboveTheme.As for the implementation, the one thing that is currently bothering me a bit is the existence of both
HourCyclePreferenceandHourCycleSetting. Unfortunately as the former is already in use for the original 24 hour macOS support implementation, shown below, we cannot settle on just one without refactoring the existing code. 🤔Signal-Desktop/ts/types/I18N.std.ts
Lines 37 to 41 in 90c0fc7
Sort of a follow up to 1143c0e, which added 24 hour time format for macOS.
Resolves #4079 (exactly)
Resolves #4252 (sort of, not exactly)
Testing
I added test coverage for this new preference. Additionally I tried running the app locally on my Fedora Workstation 43 (GNOME 49) system but unfortunately I'm seeing some GTK error with the local build. Not sure if that's due to an issue on my end or not.
Screencast.From.2025-11-24.18-14-59.mp4