0

my cron jobs are executed half an hour later than when they are supposed to. Does cron refer to the system time when it executes its jobs or refers to its own time(if it has one)?

2 Answers2

1

Yes, cron will run at the system time, which might be different to yours.

echo $TZ

and compare that to /etc/TIMEZONE

Or the time might be wrong, have you configured ntp?

to check:
/usr/sbin/ntpq -c peers

Sirch
  • 5,785
  • 4
  • 20
  • 36
0

cron refers to system time, so you may have to correct the clock.

Satya
  • 116
  • 2