David Nehme
David Nehme

Reputation: 21597

cron jobs change time after DST

My cron job is running an hour later after end of DST. This didn't happen to other user's jobs on the same machine (AIX). What am I doing wrong?

Upvotes: 2

Views: 1051

Answers (3)

Douglas Leeder
Douglas Leeder

Reputation: 53320

I think the first thing to find out is the timezone that cron is running under:

0 1 * * * (/usr/bin/date ; /usr/bin/date -u) > ~/cron.out

You might also want to get one of the users whose cron jobs are working to do it as well.

Upvotes: 2

Brian Leahy
Brian Leahy

Reputation: 35527

If you are converting UTC into local time(correctly) and the job is for a non-DST timezone, like Arizona, it will run an hour later, relative to your server.

Upvotes: 1

Darryl Hein
Darryl Hein

Reputation: 145037

You have probably already checked this, but was the time changed correctly on the server?

Upvotes: 0

Related Questions