Link to home
Start Free TrialLog in
Avatar of inajam
inajam

asked on

Cron not firing on system time

I have a VPS based in Australia and have set system time to New Zealand so when I run #date I get NZDT, the correct time.  

However my cron jobs seem to be running on Australia time, firing two hours later than set.  Do crons run on a different time clock?

How can I check/adjust what time the cron should be firing.   Note I use Plesk 9 to set up crons and adjust time but am comfortable with SSH if that might help diagnose the problem.

Linux 2.6.18 Apache/2.2.3 (CentOS)
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

try to set in the script the env. variable TZ
ASKER CERTIFIED SOLUTION
Avatar of inajam
inajam

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial