in reply to OT: Crontab entry missed due to Daylight savings time?

Hi,

You don't state if it is a workstation or a server. For workstations, local time zone is sufficient. Servers, especially production servers, should be set to UTC or GMT (pick your flavor) and the CLIENT applications should make the time conversions as necessary.

Yes, this is quite a common occurance.

hope this helps

Jason

No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1

  • Comment on Re: OT: Crontab entry missed due to Daylight savings time?

Replies are listed 'Best First'.
Re: Re: OT: Crontab entry missed due to Daylight savings time?
by freddo411 (Chaplain) on Apr 07, 2004 at 23:47 UTC
    I was speaking about a server that hosts my perl application, and crontab entries.

    I setup a sandbox solaris 8 machine and I ran a number of tests by manually changing the time. I have discovered the following:

    * If the `date` command is used by root to change the time, the next crontab entry is not executed properly (or at all it seems) even if the clock runs through the proper time.

    * Solaris 8 changes to the DST (PDT) using a time zone conversion at 2am (at least by my american, PST localization settings). This causes cronjobs scheduled to run between 2am and 3am in spring time conversion window to not execute.

    * None of this is documented in man cron or man crontab.

    * Google has a few discussions on this for various flavors of unix. Lots of speculation, not a lot of facts though.

    Thanks for the input!

    -------------------------------------
    Nothing is too wonderful to be true
    -- Michael Faraday

      Hi Michael,

      I'm dealing with various levels of production as well as the classical test, QA and development servers all day long so the first thing I was ask is Production?. Sorry if it came out the wrong way..

      Jason L. Froebe

      No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1