Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Sep 24, 2011 4:54 am 
Offline
Junior Member

Joined: Mon Apr 11, 2011 9:49 pm
Posts: 49
It seems every time I do a update for the time module, it always messes up the date. I always reset the /etc/localtime, but it seems that just waiting for ntp or something to reset on it's own is the only reliable method.

Any way to prep for this sorta weird behavior in the future? Should I be using ntp to manually force my VPS to sync the correct time stamp?


Top
   
 Post subject:
PostPosted: Sat Sep 24, 2011 8:42 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Define "messes up"...

Next time it happens, do "date" and "date -u" both before and after you fix it. That will help define what's going on. (Also, from the ntpq command line, "rl" and "peers" might be handy.)

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Sat Sep 24, 2011 11:01 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
What do you mean "reset the /etc/localtime" ?

Are you saying that the _timezone_ on your machine is wrong? If that's the case then you may need to edit /etc/sysconfig/clock because that value is sometimes used to update /etc/localtime.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Tue Sep 27, 2011 2:51 am 
Offline
Junior Member

Joined: Mon Apr 11, 2011 9:49 pm
Posts: 49
hoopycat wrote:
Define "messes up"...

Next time it happens, do "date" and "date -u" both before and after you fix it. That will help define what's going on. (Also, from the ntpq command line, "rl" and "peers" might be handy.)
[02:47 AM] $ date
Tue Sep 27 02:47:24 EDT 2011
[02:47 AM] $ date -u
Tue Sep 27 06:47:26 UTC 2011

The current time is 11:49 PM, Sept. 26th, 2011

In other words, it's still wrong, even after relinking the correct timezone.. I don't know much about ntpq.
sweh wrote:
What do you mean "reset the /etc/localtime" ?

Are you saying that the _timezone_ on your machine is wrong? If that's the case then you may need to edit /etc/sysconfig/clock because that value is sometimes used to update /etc/localtime.
I'm saying for some reason a module updated with yum update always ruins my timezone information. It's annoying. And I'm not sure exactly how to fix it.


Top
   
 Post subject:
PostPosted: Tue Sep 27, 2011 2:59 am 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
superfastcars wrote:
The current time is 11:49 PM, Sept. 26th, 2011

...."11:49 PM" in what time zone? As of when you posted, it's certainly not "11:49 PM" in either EDT (UTC-04:00), which your node is set to, or UTC.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject:
PostPosted: Tue Sep 27, 2011 8:11 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Indeed, the time is correct; my forum account is set to EDT:

Image

You've gone through the RHEL time-zone-changing procedure at least once, correct? You shouldn't have to directly muck with the /etc/localtime file.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group