Solved

date changes itself

Posted on 2004-10-05
1
239 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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now