On Fri, Aug 17, 2012 at 11:20 PM, Shridhar Daithankar < ghodechhap@ghodechhap.net> wrote:
Hello,
I am having trouble with time on a machine when I boot with systemd. The clock is ahead of actual time by the value of time zone offset.
Funny thing is when I boot with initscripts, time is reported correctly.
I have this problem on one machine but other machine works correctly. The only difference I can spot is hwclock reports local time, on the machine where time is correct.
Whats the magic that I am missing?
with systemd --------------------------- [shridhar@waman ~]$ date Sat Aug 18 14:23:16 IST 2012
[shridhar@waman ~]$ cat /etc/timezone Asia/Kolkata
[shridhar@waman ~]$ ls -al /etc/localtime lrwxrwxrwx 1 root root 32 Aug 11 02:02 /etc/localtime -> /usr/share/zoneinfo/Asia/Kolkata
[shridhar@waman ~]$ cat /etc/adjtime 0.000000 0 0.000000 0 UTC
[shridhar@waman ~]$ grep -i hwclock /etc/rc.conf DAEMONS=(hwclock syslog-ng dbus network crond @cpufreq @openntpd @dnsmasq @sshd @laptop-mode kdm)
[shridhar@waman ~]$ grep -i hardware /etc/rc.conf
[root@waman shridhar]# hwclock Sat 18 Aug 2012 02:26:28 PM IST -0.110228 seconds
[root@waman shridhar]# hwclock -u Sat 18 Aug 2012 02:29:35 PM IST -0.375925 seconds ---------------------------
with initscripts --------------------------- [shridhar@waman ~]$ date Sat Aug 18 08:44:09 IST 2012
[root@waman shridhar]# hwclock Sat 18 Aug 2012 02:33:05 PM IST -0.146140 seconds
[root@waman shridhar]# hwclock -u Sat 18 Aug 2012 02:33:10 PM IST -0.438390 seconds
---------------------------
-- Regards Shridhar
Apologies, looks like you already did that (I just woke up and must have scrolled past it, heh )