Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98934 - adjtimex should check if CMOS clock is in UTC
Summary: adjtimex should check if CMOS clock is in UTC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-13 16:16 UTC by Gabriel Devenyi
Modified: 2006-03-25 16:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Devenyi 2005-07-13 16:16:13 UTC
adjtimexconf attempts to determine the clock drift by comparing to the CMOS clock, however it assumes the CMOS clock is set to "local" time, but gentoo defaults to cmos is "UTC" or Greenwich time. adjtimexconf should check /etc/conf.d/clock to see which is set

IF
CLOCK="UTC" 
/usr/sbin/adjtimex --adjust -u >/etc/adj.adjust
otherwise just run
/usr/sbin/adjtimex --adjust >/etc/adj.adjust
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-02-20 01:09:13 UTC
Please attach a patch to adjtimexconfig.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-03-25 16:50:23 UTC
in cvs.