Bug 981793

Summary: RFE: "Hardware clock uses UTC" checkbox under the "Date & Time" spoke
Product: [Fedora] Fedora Reporter: Andre Robatino <robatino>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, dshea, g.kaviyarasu, jonathan, mkolman, sbueno, stephent98, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-26 18:22:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andre Robatino 2013-07-05 20:32:27 UTC
Description of problem:
Currently anaconda sets the system clock to local time if Windows is detected, otherwise UTC. These are reasonable defaults, but there exists a registry hack to make Windows use UTC, in which case one wants Fedora to use UTC as well. It can be changed after the install, but there are a lot of things to configure afterwards, and if not done promptly, can lead to problems like bug 981617. This can be avoided by adding a "System clock uses UTC" checkbox under the "Date & Time" spoke so it's possible to set during installation (as was possible in oldUI).

Comment 1 Steve Tyler 2013-07-05 21:18:45 UTC
This was proposed in:
Bug 881403 - Anaconda doesn't correctly infer if system clock shows UTC or local time

But see:
Bug 881403, Comment 29
Bug 881403, Comment 30

NB: The clock in question is the hardware clock, not the system clock:
Bug 881403, Comment 33

Comment 2 Andre Robatino 2013-07-06 05:57:04 UTC
Thanks, I wasn't sure about the right terminology and copied what system-config-date said. I filed bug 981831 against s-c-d.

Comment 3 David Shea 2013-07-26 18:22:06 UTC
As was noted in bug 881403, the removal of the UTC checkbox was intentional, since it was found to be confusing for many users. The setting can be changed after the installation. It can be also set during installation through the use of a kickstart file, by adding or omitting the --utc parameter to the timezone command.

Comment 4 Andre Robatino 2013-07-26 19:30:25 UTC
It should be noted that partial kickstart files currently don't work (see bug 972265 and bug 972266) so it's currently not practical for the average kickstart-ignorant user (like me) to do this, unless they first do a scratch install to get a complete kickstart file for their hardware, then tweak it and reinstall. If they worked, one could just use a 1-line file. For the time being I'll have to use s-c-d followed by rebuilding the initramfs.

Comment 5 Steve Tyler 2013-07-26 20:03:24 UTC
The fact that the initramfs needs to be rebuilt is a bug, IMO. The relevant config file is /etc/adjtime and that is available in the actual file system, so there doesn't seem to be any reason to have a copy in the initramfs.
See Bug 981617, Comment 18.

It might be worth opening a bug against dracut for the problem of needing to rebuild the initramfs after the RTC time zone is changed.