Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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).

share|improve this question

marked as duplicate by John Gardeniers, MDMarra, EEAA, voretaq7 Oct 25 '12 at 20:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
serverfault.com/questions/107482/… –  quanta Oct 12 '11 at 4:23
    
    
add 3 hours to each cron job! –  Silverfire Oct 12 '11 at 5:16

1 Answer 1

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:

share|improve this answer
    
Thanks, I sent your reply to the support, since I don't have access to crontab file. I'll wait and see their answer.. –  Adam Strudwick Oct 12 '11 at 15:10

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