On Thu, May 27, 2010 at 9:37 PM, Dan Shimshoni <danshi...@gmail.com> wrote:

> Hello,
>  On my desktop at home, when I want to to update the local time (I
> live in israel) I run:
> ntpdate -s ntpserver.huji.ac.il
> And it work OK.
> However, there is a server at my work place which I am responsible
> for. When I run:
> ntpdate -s ntpserver.huji.ac.il
> it sets the time to 7 hours earlier (I mean, instead 19:00, it is 12:00).
> I assume this has something to do with Time zones, but this machine
> has no X windows installed at all so I don't have a GUI for setting time
> zones.
> What causes this error ?
> What should I do ? any advice ?
>
>
'date'  will show you the time including the timezone. for example:

$ date
Thu May 27 21:47:50 IDT 2010

(IDT = Israel Daylight-savings Time)

If your timezone is wrong, you can:
cp /usr/share/zoneinfo/Israel /etc/localtime

And then try date again. the time will probably change, and you'll need to
re-set it with 'date' to the correct time:

date MonthDayHourMinute

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...)

HTH,

-- Shimi
_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to