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
Solved

date changes itself

Posted on 2004-10-05
1
246 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

Title # Comments Views Activity
su - oracle could not open session 6 95
linux redhat 7.2 10 89
Linux server had an unexpected freeze. How to find out cause (sys logs)? 13 47
AWS EC2 HTTP & HTTPS 2 44
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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.

856 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