signalapp / Signal-Desktop

A private messenger for Windows, macOS, and Linux.
https://signal.org/download
GNU Affero General Public License v3.0
14.6k stars 2.66k forks source link

Signal on Windows does not follow regional formats #5248

Open LituanusVulgaris opened 3 years ago

LituanusVulgaris commented 3 years ago

Bug Description

Signal does not follow regional formats for date and time set in Windows preferences.

Steps to Reproduce

  1. Set regional format different that the Windows UI language. In my case it is Lithuanian. Windows UI is US English.

Actual Result:

Time is displayed in 12AM/PM format, weekdays, months are in English

Expected Result:

Time should be displayed in 24 hours format, weekdays, months should be in Lithuanian

Screenshots

Platform Info

Signal Version: 5.1.0

Operating System: Edition Windows 10 Pro Version 20H2 Installed on ‎2020-‎11-‎03 OS build 19042.928 Experience Windows Feature Experience Pack 120.2212.551.0

Linked Device Version: iOS 14.4.2

LituanusVulgaris commented 3 years ago

Forgot to mention that issue appeared with the latest update of Signal, before the update Signal was following Regional formats.

EvanHahn-Signal commented 3 years ago

Sorry you're running into this.

We recently made some changes to how we render a few timestamps, and it sounds like we might have made a mistake. Can you give an example of a time you're seeing that's incorrect, and what it should be? A screenshot would be super helpful.

h4knet commented 3 years ago

image

ghost commented 2 years ago

Sorry you're running into this.

We recently made some changes to how we render a few timestamps, and it sounds like we might have made a mistake. Can you give an example of a time you're seeing that's incorrect, and what it should be? A screenshot would be super helpful.

image

It should be 14:00 for en-GB

briped commented 10 months ago

While I don't see this as a solution, I do see it as a work around until Signal adds an GUI option for the same. Edit the ephemeral.json file located in your %USERPROFILE%\AppData\Roaming\Signal folder.

Change:

"localeOverride": null

to your preferred locale. In my case it would be en-DK (for English language and Danish formatting):

"localeOverride": "en-DK"

Afterwards Signal shows the timestamp as I expect them to be shown.

I have not tested this approach on my Ubuntu box, but I would imagine a similar approach is possible on there as well.