Follow the 'Time Format' (12h/24h) in Greeter's clock
Bug #1639845 reported by
Antonio Camargo
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Greeter |
New
|
Undecided
|
Unassigned |
Bug Description
Greeter shows the time in the 12h format even when the 24h format was chosen is the system settings. This creates inconsistency and confusion (as most countries use the 24h format)
To post a comment you must log in.
I looked at the code. In pantheon-greeter there is file TimeLabel.vala where the time label for greeter is made. Following lines clearly indicates that pm/am and 12 hour display is hard coded:
var time_format = _("%l:%M");
var meridiem_format = _(" %p");
The format for time see https:/ /valadoc. org/glib- 2.0/GLib. DateTime. format. html.
I think the proper code should not contain meridiem_format at all (requires some other changes to remove this label) and only use time_format as follows:
var time_format = _("%X");