Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a cron job to send an email once everyday.

I actually do not know the issue, but i'm guessing it has something to do with daylight savings time.

During DST, my emails are sent one hour late for the people who observe DST and at the correct time for those who don't observe DST.

Is there a way to hold both the cases?

share|improve this question

migrated from Jul 14 '11 at 1:00

This question came from our site for professional and enthusiast programmers.

what is it about these emails that makes being an hour late a problem? Email explicitly does not provide a guarantee of instant delivery. – Spudley Jul 13 '11 at 19:00

Run the cron job at both times (DST/non-DST) and then inside your cron job's logic select the appropriate users.

share|improve this answer
What is the specific command to run it on both DST and Non DST.. beacuse one it is set, nothing can be done right ?? it is system specific. PLease can you elaborate your answer. How to toggle between DST and Non DST – Manjunath Manoharan Jul 13 '11 at 15:36
Cron has no notion of DST - you'd need to set the cron job to run at the normal hour as well as one hour offset to match during DST. Then in your script, you would need to check the time and whether you are currently within DST to determine whether to run. – Jeremy Weathers Jul 14 '11 at 15:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.