I am on GMT+8 and i have set my hwclock clock to local. I done this specifically by doing the following
Code: Select all
rm /etc/adjtime
system-config-date -- set to my current time.
ln -s /usr/share/zoneinfo/Asia/Singapore localtime
hwclock --systohc --localtime
Please see my current configuration before RESTART
Code: Select all
[root@sjoam2 ~]# date
Sun Aug 2 03:02:08 SGT 2015
[root@sjoam2 ~]# hwclock --debug
hwclock from util-linux-ng 2.17.2
Using /dev interface to clock.
Last drift adjustment done at 1438455666 seconds after 1969
Last calibration done at 1438455666 seconds after 1969
Hardware clock is on local time
Assuming hardware clock is kept in local time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2015/08/02 03:02:11
Hw clock time : 2015/08/02 03:02:11 = 1438455731 seconds since 1969
Sun 02 Aug 2015 03:02:11 AM SGT -0.391210 seconds
[root@sjoam2 ~]# cat /etc/adjtime
0.000000 1438455666 0.000000
1438455666
LOCAL
Code: Select all
[root@sjoam2 ~]# date
Sun Aug 2 11:05:39 SGT 2015 [b][color=#FF0000] -- why +8 hours again when i already specify that the hwclock is in localtime~?[/color][/b]
[root@sjoam2 ~]# hwclock --debug
hwclock from util-linux-ng 2.17.2
Using /dev interface to clock.
Last drift adjustment done at 1438455666 seconds after 1969
Last calibration done at 1438455666 seconds after 1969
Hardware clock is on local time
Assuming hardware clock is kept in local time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2015/08/02 03:05:38
Hw clock time : 2015/08/02 03:05:38 = 1438455938 seconds since 1969
Sun 02 Aug 2015 03:05:38 AM SGT -0.500720 seconds [b][color=#FF0000] -- well this is still the correct time~~[/color][/b]
Hope some gurus shed some light on what's wrong~
P.S. -- please do not ask me to use ntp. I have wasted 2 days on this and i really wanna get it fix
Regards,
Noob