Bug 656747 - systemd continually setting clock to UTC vice local time
Summary: systemd continually setting clock to UTC vice local time
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-24 01:50 UTC by Clyde E. Kunkel
Modified: 2011-01-04 15:36 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-11-25 01:50:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.