Bug 656747

Summary: systemd continually setting clock to UTC vice local time
Product: [Fedora] Fedora Reporter: Clyde E. Kunkel <clydekunkel7734>
Component: systemdAssignee: Lennart Poettering <lpoetter>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: awilliam, lpoetter, metherid, mschmidt, notting, plautrba, robatino
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-25 01:50:22 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:

Description Clyde E. Kunkel 2010-11-24 01:50:10 UTC
Description of problem:
clock continually set to UTC vice local time

Version-Release number of selected component (if applicable):
systemd-13-1.fc15.x86_64

How reproducible:
every time

Steps to Reproduce:
1. boot machine
2. notice clock set to UTC
3. use system-config-date to set time to local time
4. goto 1
  
Actual results:
clock always set to UTC on boot/reboot

Expected results:
clock always set to local time on boot/reboot

Additional info:

Comment 1 Bill Nottingham 2010-11-24 01:54:51 UTC
Do you have initscripts-legacy installed?

Comment 2 Clyde E. Kunkel 2010-11-24 14:57:37 UTC
No.  Should I?

Comment 3 Lennart Poettering 2010-11-24 22:29:10 UTC
Could you paste /etc/adjtime please?

What is the result of 'systemctl is-enabled hwclock-load.service ; echo $?'

Comment 4 Clyde E. Kunkel 2010-11-24 22:46:16 UTC
this is with clock showing UTC when local time is wanted:


[kunkelc@P5K-EWIFI ~]$ cat /etc/adjtime
-5.875116 1290638232 0.000000
1290638232
LOCAL
[kunkelc@P5K-EWIFI ~]$ systemctl is-enabled hwclock-load.service ; echo $?
1
[kunkelc@P5K-EWIFI ~]$

Comment 5 Lennart Poettering 2010-11-25 01:50:22 UTC
Hmm, OK. this happens because i forgot to enable hwclock-load.service on package install. I have now fixed that in the .spec file in 15.

On your machine please fix this manually with "systemctl enable hwclock-load.service".

Comment 6 Clyde E. Kunkel 2010-11-25 02:05:06 UTC
That fixed it.  Thanks.

Comment 7 Felix Miata 2011-01-04 14:39:49 UTC
I converted an F15 to Rawhide day before yesterday, with the problem reported here resulting. I had to 'systemctl enable hwclock-load.service' to get my clock right.

Comment 8 Adam Williamson 2011-01-04 15:36:04 UTC
as I read the fix, it won't work for updates of an already-installed systemd-units package, indeed - only for the first install of that package (including the first time it's installed to replace upstart, so it'll work okay on f14->f15 upgrades).



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers