1

Possible Duplicate:
Timezone for cron jobs

On a VPS server, my cronjobs are running 3 hours late. The server current time is Tue Oct 11 23:56:09 EDT 2011 which is the time I want to (I checked this in WHM). However, the cronjobs still execute at pacific time (where the server is physically located).

I've asked my hosting provider for an answer, but I haven't had an answer for 48 hours. Do any of you have a clue how to solve this mastermind puzzle? By the way, the cron job is properly set (everything works fine, the only problem is the 3 hour delay from the time I put).

Adam Strudwick
  • 111
  • 1
  • 2

1 Answers1

0

It may be as a result of a discrepancy between the timezone that your OS is set to use and the timezone that your cronjobs are set to use. Check the user's crontab file to see if any specific timezone has been specified.

You can change the TZ variable in crontab to be the timezone that you want the jobs to run as. BTW, here is the list of TZ timezones.

This topic has also been explored in two other ServerFault questions:

Wesley
  • 32,320
  • 9
  • 80
  • 116