11
1
My cron jobs are computed one hour later compared to server time. I don't understand what is going on.
My configuration is the following :
Server time :
Europe/Paris
In /etc/default/cron I added the following line :
TZ="Europe/Paris"
Despite that, cron job are launched one hour later than server time. What is really tricky, is that if I ask cron to play instruction "date", it gives the server date (the good one !).
I have no idea of how to resolve this problem ; I've been doing some reading on forums, but found nothing interesting.
What do you think ?
4So cron jobs are being scheduled in UTC. The Vixie cron man page says, "The daemon will use, if present, the definition from /etc/timezone for the timezone." What's in
/etc/timezone
? Have you modified/etc/timezone
more recently than thecron
process was started? Have you tried/etc/init.d/cron restart
? – Keith Thompson – 2012-01-05T11:11:01.0133/etc/timezone has been modified recently, without restarting /etc/init.d/cron . I'm gonna try to restart it. – Guillaume Lebourgeois – 2012-01-05T12:35:54.277