Calendar: Force 24-hour format early after start
When using a locale with 24-hour time format e.g. Russian and a clean user profile, Calendar displays time labels in the 12-hour format instead until the Preferences window is opened.
Steps to reproduce
- Create a new user account and log into it.
- Set a locale with 24-hour time format e.g. Russian.
- Launch Evolution and switch to the Calendar view. Note that time labels in the appointment list use 12-hour format.
- Open Edit -> Preferences window and close it right away without changing anything. Note that now the times are (and remain) in the correct 24-hour format.
Expected behavior
Evolution should use the correct time format from the beginning.
Version information
I'm using Debian GNU/Linux 10 (buster) with Evolution 3.30.5. Also tested on Fedora 30 with Evolution 3.32.4.
Additional information
I see that the Preferences window explicitly sets use-24hour-format
to true in case the locale doesn't support the 12-hour format - I guess, this should better be done on application startup instead of on opening the Preferences window.
Edited by Milan Crha