I have a cron job in a US server which should run at 5.00 pm indian time. I have set the time accordinlgy in cron, but daylight settings causes imbalance in this, i have to change my cron time manually to adjust to this. Is there any way to tackele this?
Is this a Java related question or your US Server OS Specific question?
Well, from your question I infer that your US Server is a Unix box. Apparently I believe you don't have to do anything. The OS time is adjusted for Daylight settings in US. The cron runs according to the OS time. So I believe you won't notice any change in the behavior of cron job.
If at all you are noticing some imbalance in the behavior, then I would recommend looking at the system time settings, whether they are adjusted for Daylight settings or not. Normally, the system time should be adjusted taking into consideration the Time Zone(EDT, EST, PST etc) and whether Daylight saving is applicable or not. If that is done properly, then you don't need to make any modifications to any cron job or any of your code for that matter. [ October 14, 2005: Message edited by: Ritesh Agrawal ]
Ritesh<br /> <br />SCJP 1.4<br />IBM Test 340<br />IBM AIX V4.0 Certified Professional<br /> <br />Right actions for the future are the best apologies for wrong ones in the past.<br />- Tyron Edwards