View previous topic :: View next topic |
Author |
Message |
v3rtigo Apprentice
Joined: 15 Jun 2004 Posts: 179
|
Posted: Tue Nov 09, 2004 4:43 pm Post subject: clock not showing the real time with ntp. |
|
|
well when yesterday i finally fixed it and everything worked great, today it's even worse,
now my time is 6:40 pm, and computer clock showing 9:10pm.
I use ntp servers to sync the right time, but somehow it's not working, and yes /etc/localtime
point to my area.
what can be the problem? |
|
Back to top |
|
|
lynxnyl Apprentice
Joined: 15 Aug 2004 Posts: 253 Location: Ljubljana, Slovenija
|
Posted: Tue Nov 09, 2004 5:46 pm Post subject: |
|
|
Not working as in it doesn't get set or as in it sets the wrong time?
I'd resync my time and if that was ok, set the hwclock to it too. Then add these commands in a cron job. (I have "rdate -s time.nist.gov && hwclock --systohc" executed weekly) |
|
Back to top |
|
|
v3rtigo Apprentice
Joined: 15 Jun 2004 Posts: 179
|
Posted: Tue Nov 09, 2004 6:30 pm Post subject: |
|
|
lynxnyl wrote: | Not working as in it doesn't get set or as in it sets the wrong time?
I'd resync my time and if that was ok, set the hwclock to it too. Then add these commands in a cron job. (I have "rdate -s time.nist.gov && hwclock --systohc" executed weekly) |
setiing wrong time.
and it showing me "command not found" on rdate, then tried with "date"
and
date: invalid date `time.nist.gov'.
but the thing, it was ok yesterday ;x |
|
Back to top |
|
|
lynxnyl Apprentice
Joined: 15 Aug 2004 Posts: 253 Location: Ljubljana, Slovenija
|
Posted: Tue Nov 09, 2004 6:34 pm Post subject: |
|
|
you have to emerge rdate.
If it's setting the wrong time, recheck your link. And with rdate, you can check which time it would set your time to (rdate time.server.addy). |
|
Back to top |
|
|
psyqil Advocate
Joined: 26 May 2003 Posts: 2767
|
Posted: Tue Nov 09, 2004 6:37 pm Post subject: |
|
|
|
|
Back to top |
|
|
v3rtigo Apprentice
Joined: 15 Jun 2004 Posts: 179
|
Posted: Tue Nov 09, 2004 6:46 pm Post subject: |
|
|
allready tried to do it. |
|
Back to top |
|
|
v3rtigo Apprentice
Joined: 15 Jun 2004 Posts: 179
|
Posted: Tue Nov 09, 2004 6:49 pm Post subject: |
|
|
lynxnyl wrote: | you have to emerge rdate.
If it's setting the wrong time, recheck your link. And with rdate, you can check which time it would set your time to (rdate time.server.addy). |
tnx, now it's working |
|
Back to top |
|
|
lynxnyl Apprentice
Joined: 15 Aug 2004 Posts: 253 Location: Ljubljana, Slovenija
|
Posted: Tue Nov 09, 2004 7:08 pm Post subject: |
|
|
Great, hope it stays ok.
I'd make a cron job ... |
|
Back to top |
|
|
|