I need to run a cronjob at 21:02 GMT. My crontab is:
CRON_TZ=GMT
02 21 * * * thecommand
This works well on SuSE, but does not work on Ubuntu. Instead, it runs thecommand at 20:02, i.e. the timezone is chosen as GMT+1. Why?
The server timezone is MSK (now it is GMT+3).
From man 8 cron : "The daemon will use, if present, the definition from /etc/timezone for the timezone"
$cat /etc/timezone
Europe/Moscow
The command lsb_release -a says:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty