LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2013, 06:11 PM   #1
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Help with adjusting system time and hwclock time


I have a 12 hour difference in my system time and hwclock time. I have manually set the system time to the proper local time, then when I ran hwclock --systohc it moved my hwclock to 12hr slow:

Code:
[root@centos ~]# date 081718062013
Sat Aug 17 18:06:00 EDT 2013
[root@centos ~]# hwclock --systohc
[root@centos ~]# date
Sat Aug 17 18:06:50 EDT 2013
[root@centos ~]# hwclock -r
Sat 17 Aug 2013 06:06:56 PM EDT  -0.910680 seconds

--systohc      set the hardware clock to the current system time
so according to the hwclock -h the --systohc should have moved the hardware clock to 18hr, not 06hrs. what gives, and how to i fix this?

I need to get my time stamp working properly on the server so that I can start playing around with Kerberos.

Thanks.

edit to add, yes i am EDT so the time zone is correct.

No i am not running NTP atm. I might move to that soon if I can not figure out how to fix the hardware clock.

Last edited by lleb; 08-17-2013 at 06:16 PM.
 
Old 08-17-2013, 06:19 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
The hardware clock is set to 6:06 PM in your example, which is exactly the same as 18:06. It seems that hwclock simply uses a different format for displaying the time.
 
1 members found this post helpful.
Old 08-17-2013, 06:39 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Original Poster
Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by TobiSGD View Post
The hardware clock is set to 6:06 PM in your example, which is exactly the same as 18:06. It seems that hwclock simply uses a different format for displaying the time.
good catch, im so tired i didnt even see that. thank you. i just saw 06 reported and was thinking it was now 12hr off.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] The system time switches the time zone automatically but doesn't change the time RandomTroll Linux - Software 9 03-15-2013 01:28 PM
[SOLVED] System sets wrong values for time at boot and to hwclock during shutdown. JZL240I-U Linux - Kernel 14 11-18-2010 09:06 AM
Problem Adjusting the System Time to kaplan71 Fedora 1 02-23-2007 11:06 AM
Sys time and hwclock time hallamigo Mandriva 2 05-24-2004 10:57 PM


All times are GMT -5. The time now is 10:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration