[CentOS] system clock

Scott Robbins scottro at nyc.rr.com
Sun Feb 6 23:20:54 UTC 2011


On Sun, Feb 06, 2011 at 10:56:11PM +0000, Benjamin Donnachie wrote:
> On 6 February 2011 22:33, Keith Roberts <keith at karsites.net> wrote:
> > Could do Ben. But the idea of ntp is that it does it for
> > you automatically, without having to intervene yourself and
> > set the time manually :)
> 
> Agreed but OP asked, "Is there a simple way to adjust the time?".

Depending upon OP's needs, as they are going to be dual booting, as far
as I can tell from the post, the simplest thing would be to set the
CentOS install to use localtime.

To do that, edit /etc/adjtime.  You'll see it says UTC.  Change that to
LOCAL

Reboot.  (Might be a way to put it into effect without a reboot, but I
don't know)  Run ntpdate pool.ntp.org which will set the time.

Now, when you boot between the two of them, Windows and Linux, the time
will stay the same.  The problem is that both systems set the hardware
to clock time when shutting down.

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Xander: Dinner is served. And my very own recipe.
Willow: Ooh, you pushed the button on the microwave that says
'popcorn'?
Xander: Actually, I pushed 'defrost', but Joyce was there in the
clinch.



More information about the CentOS mailing list