Solved

date changes itself

Posted on 2004-10-05
1
243 Views
Last Modified: 2013-12-16
I am using redhat linux.  my timezone is GMT+3. I set the GMT date using the " date -u XXXXXXXXX"  command. when I execute the " date " command afterwards I see my correct local time and "date -u " gave me the correct GMT time. At that point my hwclock showed my correct localtime. after 20 minutes although my hwclock not changed, my date changed itself 3 hours ahead. Now  both my local time and GMT time  are showing 3 hours ahead. 20 minutes after seting the correct hours,  my clock jumps again three hours ahead.  my ntpd is not active. how can I make my computer stay at the time that I adjusted.
0
Comment
Question by:tolgaonel
1 Comment
 
LVL 6

Accepted Solution

by:
blkline earned 125 total points
ID: 12225819
Is your hardware clock really set for GMT?     Reboot your computer and verify that the hardware clock is set to GMT.  Then, boot into Linux and log on as root.   Delete the file   /etc/adjtime   and run redhat-config-date.      Verify your timezone and that the box "System clock uses UTC" is checked.   Now set your clock thus:     rdate -s clock.psu.edu;hwclock --systohc

You should find everything working properly at this point.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question