Runtime changing of timezones
Title: Message I have been following this group now for a while, and it is great to see such an active linux community here in israel. If I may, I would like to add a question about timezones. If I use tzselect to change my time zone, is there any way to get applications that are already running to notice the timezone change, and update their clocks appropriately? perhapsby sendingthem some signal? As an example application, I would like to get the gnome clock to be updated without having to restart gnome. I am also running a custom application, and I would like them to all display the correct time. Thank you linux-il, Nachum
[job offer] Informix DBA
Hi, Looking for a freelance Informix DBA. If you're interested in a challenging project and have proven Informix DBA experience, you're welcome to reply to this message or call me at 066-481411. --Nahum = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Runtime changing of timezones
On Tue, 16 Mar 2004, Nachum Kanovsky wrote: If I use tzselect to change my time zone, is there any way to get applications that are already running to notice the timezone change, and update their clocks appropriately? perhaps by sending them some signal? As an example application, I would like to get the gnome clock to be updated without having to restart gnome. I am also running a custom application, and I would like them to all display the correct time. what _are_ you trying to achieve? are you trying to adjust the machine for daylight saving time changes? or you're running a test machine and testing some software that need to be tested in different timezones? in the former case, you are not supposed to touch the time-zone at all, but rather make sure that the TZ file you have is updated with the dates of daylight saving time's changes, and then the switch will be made automatically - man 'zic' for more information, and look at ftp://ftp.cs.huji.ac.il/pub/tz/israel (look at the 'README' file) for easy instructions for the madness called israeli summer-time ;) if you're talking about the later, i'm afraid tzselect cannot help - since (i pressume) you're using it to set the TZ environment variable - and this change does not effect existing processes. you _might_ be able to apply such a change to them by attaching a debugger to them and using it to invoke the relevant library function - but i'm not sure how various applications will react to such a change. if you change the time zone of the entire machine - perhaps this will effect currently-running applications. -- guy For world domination - press 1, or dial 0, and please hold, for the creator. -- nob o. dy = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Israeli summer time - Was Re: Runtime changing of timezones
With such a huge community of techies, why can't we come up with a way to make this easier for all of us- or maybe someone has? yonah guy keren wrote: On Tue, 16 Mar 2004, Nachum Kanovsky wrote: If I use tzselect to change my time zone, is there any way to get applications that are already running to notice the timezone change, and update their clocks appropriately? perhaps by sending them some signal? As an example application, I would like to get the gnome clock to be updated without having to restart gnome. I am also running a custom application, and I would like them to all display the correct time. what _are_ you trying to achieve? are you trying to adjust the machine for daylight saving time changes? or you're running a test machine and testing some software that need to be tested in different timezones? in the former case, you are not supposed to touch the time-zone at all, but rather make sure that the TZ file you have is updated with the dates of daylight saving time's changes, and then the switch will be made automatically - man 'zic' for more information, and look at ftp://ftp.cs.huji.ac.il/pub/tz/israel (look at the 'README' file) for easy instructions for the madness called israeli summer-time ;) if you're talking about the later, i'm afraid tzselect cannot help - since (i pressume) you're using it to set the TZ environment variable - and this change does not effect existing processes. you _might_ be able to apply such a change to them by attaching a debugger to them and using it to invoke the relevant library function - but i'm not sure how various applications will react to such a change. if you change the time zone of the entire machine - perhaps this will effect currently-running applications. = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Israeli summer time - Was Re: Runtime changing of timezones
Yonah Russ wrote: With such a huge community of techies, why can't we come up with a way to make this easier for all of us- or maybe someone has? yonah It's awfully easy, assuming you are not trying something irrelevant. If all you want is to get daylight saving at the apropriate time, you don't need to touch anything. This, of course, assumes you live in a country with predictable daylight saving. If you live in Israel, you need to keep your linux system up to date at least once a year, and your'e set. If, on the other hand, you want to move your computer from Israel to the US without terminating any process, you may find that some processes go on in their old time zone. Tough, but totally harmless. I think that once we understand what the problem is, we may be able to come up with a solution. -- Shachar Shemesh Lingnu Open Systems Consulting http://www.lingnu.com/ = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]