ntpdate and Israel local time
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 ? rgs, DS ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: ntpdate and Israel local time
On May 27, 2010, at 9:37 PM, Dan Shimshoni 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 ? /etc/localtime is set to EST/EDT (US east coast) ln -s /usr/share/zoneinfo/Asia/Jerusalem /etc/localtime Note that UBUNTU (and possibly debian) use a hard link or a copy of the file instead of symlink. Geoff. -- geoffrey mendelson N3OWJ/4X1GM Jerusalem Israel geoffreymendel...@gmail.com New word I coined 12/13/09, Sub-Wikipedia adj, describing knowledge or understanding, as in he has a sub-wikipedia understanding of the situation. i.e possessing less facts or information than can be found in the Wikipedia. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: ntpdate and Israel local time
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
Re: ntpdate and Israel local time
On Thursday, 27 בMay 2010 21:50:12 geoffrey mendelson wrote: On May 27, 2010, at 9:37 PM, Dan Shimshoni wrote: ... 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). ... /etc/localtime is set to EST/EDT (US east coast) ln -s /usr/share/zoneinfo/Asia/Jerusalem /etc/localtime Note that UBUNTU (and possibly debian) use a hard link or a copy of the file instead of symlink. RedHat/Centos/Fedora also create a copy and for a good reason: /usr may be on a separate partition, in which case /etc/localtime is a dangling link during early boot phases until /usr is mounted. -- Oron Peled Voice: +972-4-8228492 o...@actcom.co.il http://users.actcom.co.il/~oron Copyright protects Software. Patents protect Software Monopolies. http://swpat.ffii.org/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: ntpdate and Israel local time
In Debian/Ubuntu you can use: $ tzselect Then when you got that set up run (as root): $ ntpdate-debian On 5/27/10, Oron Peled o...@actcom.co.il wrote: On Thursday, 27 בMay 2010 21:50:12 geoffrey mendelson wrote: On May 27, 2010, at 9:37 PM, Dan Shimshoni wrote: ... 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). ... /etc/localtime is set to EST/EDT (US east coast) ln -s /usr/share/zoneinfo/Asia/Jerusalem /etc/localtime Note that UBUNTU (and possibly debian) use a hard link or a copy of the file instead of symlink. RedHat/Centos/Fedora also create a copy and for a good reason: /usr may be on a separate partition, in which case /etc/localtime is a dangling link during early boot phases until /usr is mounted. -- Oron Peled Voice: +972-4-8228492 o...@actcom.co.il http://users.actcom.co.il/~oron Copyright protects Software. Patents protect Software Monopolies. http://swpat.ffii.org/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: ntpdate and Israel local time
On 28 May 2010 04:37, Dan Shimshoni danshi...@gmail.com wrote: However, there is a server at my work place which I am responsible ... has no X windows installed at all so I don't have a GUI for setting time zones. If you are responsible for a Linux server, or any Linux machine beyond your desktop, you better learn command line tools pronto. --Amos ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: ntpdate and Israel local time
On 27/05/2010, at 21:50, shimi wrote: 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...) In fact, that's what he was doing. His issue is that ntp synchs the machine's clock with UTC. So in fact his internal clock is already correct. All he needs to do is set the proper time zone, as you said yourself. Herouth ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il