<div dir="ltr"><br><br><div class="gmail_quote">On Thu, May 27, 2010 at 9:37 PM, Dan Shimshoni <span dir="ltr"><<a href="mailto:danshimsh@gmail.com">danshimsh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
On my desktop at home, when I want to to update the local time (I<br>
live in israel) I run:<br>
ntpdate -s <a href="http://ntpserver.huji.ac.il" target="_blank">ntpserver.huji.ac.il</a><br>
And it work OK.<br>
However, there is a server at my work place which I am responsible<br>
for. When I run:<br>
ntpdate -s <a href="http://ntpserver.huji.ac.il" target="_blank">ntpserver.huji.ac.il</a><br>
it sets the time to 7 hours earlier (I mean, instead 19:00, it is 12:00).<br>
I assume this has something to do with Time zones, but this machine<br>
has no X windows installed at all so I don't have a GUI for setting time zones.<br>
What causes this error ?<br>
What should I do ? any advice ?<br>
<br></blockquote><div><br>'date' will show you the time including the timezone. for example:<br><br>$ date<br>Thu May 27 21:47:50 IDT 2010<br><br>(IDT = Israel Daylight-savings Time)<br><br>If your timezone is wrong, you can:<br>
cp /usr/share/zoneinfo/Israel /etc/localtime<br><br>And then try date again. the time will probably change, and you'll need to re-set it with 'date' to the correct time:<br><br>date MonthDayHourMinute<br><br>Of course you could simply sync your synchronization server with an accurate time which makes the most sense: an Internet NTP server, or in the lack of Internet access, something independent (i.e. a GPS receiver...)<br>
</div></div><br>HTH,<br><br>-- Shimi<br></div>