I have a Debian Linux server, recent install. It has this cron job:
7 1 * * * /do/something/important.sh
As I read that, it should run at 1:07am. Instead, it runs at 5:07pm.
So, wrong timezone, right? No...I'm in US/Pacific and:
# ls -l /etc/localtime
lrwxrwxrwx 1 root root 30 Mar 5 20:29 /etc/localtime -> /usr/share/zoneinfo/US/Pacific
# date
Fri Mar 9 16:54:52 PST 2012
That is the right time as I post this.
Now, cron did run for a couple days with the wrong timezone (default was MST). I fixed that by changing /etc/localtime. I also restarted cron (/etc/init.d/cron restart). I've local-gen'd, too.
That job is running at 17:07 Pacific time consistently...something else I missed?