Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Daylight settings

Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Devi,

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 ]
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic