Bug 2265628

Summary: Installed system with 24-hour time format is in 12-hour format after installation
Product: [Fedora] Fedora Reporter: Daniel Rusek <drusek>
Component: gsettings-desktop-schemasAssignee: Matthias Clasen <mclasen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 40CC: anaconda-maint, awilliam, debarshir, fmuellner, gnome-sig, kkoukiou, mail, mclasen, robatino, slavik.vladimir, w
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-23 16:47:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2187794    

Description Daniel Rusek 2024-02-23 11:08:17 UTC
Found this issue during the Fedora 40 test days. The installed Fedora Workstation 40 system seems to always have a 12-hour format set, even if I selected a 24-hour one during the installation.

Reproducible: Always

Steps to Reproduce:
1. Install the Fedora Workstation 40 using latest nightly iso.
2. Set the time format to a 24-hour one during the installation.
3. Check what is the time format in the installed system.

Actual Results:  
The installed Fedora Workstation system seems to always have a 12-hour format set.

Expected Results:  
The installed Fedora Workstation system has its time format correctly set.

Comment 1 Fedora Blocker Bugs Application 2024-02-23 11:12:12 UTC
Proposed as a Blocker for 40-final by Fedora user asciiwolf using the blocker tracking app because:

 The installed Fedora Workstation 40 system seems to always have a 12-hour format set, even if I selected a 24-hour one during the installation. This is not correct and should be fixed.

Comment 2 Adam Williamson 2024-02-23 16:27:45 UTC
There's no release criterion for this, I don't think. It doesn't really seem like something important enough to block release, to me.

What anaconda's intending to do is let you set a time *zone*, not a time format. Well, it's capable of three things: setting whether the hardware clock is set to UTC or local time, configuring NTP, and setting a timezone. What it specifically does to configure those is:

* Write out /etc/adjtime (to set the hardware clock offset)
* Enable chrony and write a configuration file for it (to configure NTP)
* Create a /etc/localtime symlink to the appropriate file in /usr/share/zoneinfo (to set the timezone)

it does nothing at all to indicate a time *display format* preference based on the timezone, and never has.

What actually changed here, I think, is just that GNOME effectively changed its default display format from 24 hour to 12 hour (while trying to make it possible to set a correct default per locale): https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas/-/merge_requests/55

Since then, however, someone realized the original goal could be met more cleanly by setting the default back to 24h and just adding a US English "translation" to 12 hour:
https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas/-/merge_requests/75

so when we get that in Fedora, GNOME's default should be back to 24hr display for all locales except en_US.

Comment 3 Adam Williamson 2024-02-23 16:47:14 UTC
https://bodhi.fedoraproject.org/updates/FEDORA-2024-06d5306b7d should fix this, let me know if not.