according to /usr/share/doc/initscripts-9.03.11/sysconfig.txt i've to set in /etc/sysconfig/clock UTC to no if i'd like to use hardware clock in local time rather then utc. in this case if the same laptop has both linux and windows both system can show the right local time. but currently /etc/init.d/ntpdate doesn't care with UTC settings just see SYNC_HWCLOCK from /etc/sysconfig/ntpdate. which means that if i set
it still write back utc time into bios and after i boot into windows i see the wrong time. so /etc/init.d/ntpdate should have to look into /etc/sysconfig/clock's UTC too.
Initscripts and ntpdate no longer use the UTC variable. hwclock uses the mode which was specified last time and is stored in /etc/adjtime.
To fix your problem, you just need to run hwclock --systohc --localtime.
So this is actually a documentation bug, reassigning to initscripts.
but what should i have to set in adjtime to use localtime?
The third line in /etc/adjtime should be set to 'LOCAL' for localtime usage.
See the hwclock man page for details.
I've clarified the docs in sysconfig.txt in upstream git; this may make a future RHEL release.
it'd have to doc in upstream sysconfig.txt and also document that /etc/sysconfig/clock don't have this setting also it'd be useful if there can be a tool which can properly set these files (currently i only know anaconda during install time).
coudl you close this bug?
Not closing it, it's open to track the documentation change in some future RHEL update.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.