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.

I have this task in my crontab

0 14 * * * command

but in my /var/log/syslog, I have

Jun 21 19:00:01 debian-squeeze-base /USR/SBIN/CRON[12810]: (user) CMD (command)

why the task run 5 hours later ?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

If memory serves me correctly, you have to restart the cron daemon after changing your timezone.

Have you changed your timezone since your last reboot?

share|improve this answer
add comment

How is your locale set? How is your timezone set?

Perhaps the user running the cron (root) is using something in UTC and you are expecting it in localtime?

share|improve this answer
    
# cat /etc/timezone America/Santiago –  JuanPablo Jun 22 '12 at 2:27
add comment

Your Answer

 
discard

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.