Solved

date changes itself

Posted on 2004-10-05
1
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

688 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