RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 637058 - ntpdate doesn't care with UTC settings
Summary: ntpdate doesn't care with UTC settings
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: initscripts
Version: 6.1
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-24 07:15 UTC by Levente Farkas
Modified: 2011-05-19 13:51 UTC (History)
3 users (show)

Fixed In Version: initscripts-9.03.18-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 13:51:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0647 0 normal SHIPPED_LIVE initscripts bug fix and enhancement update 2011-05-19 09:37:27 UTC

Description Levente Farkas 2010-09-24 07:15:04 UTC
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 
SYNC_HWCLOCK=yes
UTC=no
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.

Comment 2 Miroslav Lichvar 2010-09-27 13:21:00 UTC
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.

Comment 3 Levente Farkas 2010-09-27 13:32:08 UTC
but what should i have to set in adjtime to use localtime?

Comment 4 Bill Nottingham 2010-09-27 17:10:30 UTC
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.

Comment 5 Levente Farkas 2010-09-27 20:40:33 UTC
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).

Comment 6 Levente Farkas 2010-10-29 20:11:50 UTC
coudl you close this bug?

Comment 7 Bill Nottingham 2010-10-29 20:31:55 UTC
Not closing it, it's open to track the documentation change in some future RHEL update.

Comment 11 errata-xmlrpc 2011-05-19 13:51:37 UTC
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.

http://rhn.redhat.com/errata/RHBA-2011-0647.html


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