time server and time system message not equal

asenator

Verified User
Joined
Jul 9, 2018
Messages
17
hello everyone
i set cronjobs every minute and work it
and i set cron job for example at 20:10 and not working
and for example i set an schedule backup just now in system message time for backup is 1:10 am and server time is 20:10 pm
server time and message system time is not equal
my main problem is not working cron jobs at 20:10(HH:MM)
I think the difference between system time and system message time is related to this issue
best regard
 
check timezone in DA and servers timezone
cmd#[root@gr-da1 ~]# date
export#Sun May 23 13:51:27 +0430 2021
Asia/Tehran date

cmd#[root@gr-da1 ~]# cat /etc/timezone
export#Europe/Berlin

I think the difference in time execution is due to the time zone, so I want to change the time zone to Asia/Tehran
 
Last edited:
Oke, in that case you can use the following commands from console:

Short way:
Code:
timedatectl set-timezone Asia/Tehran
timedatectl
The second time the timedatectl is called is for saving the setting. After that, check if it's correct now.

If not, use this way (I always use this):
Code:
rm /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Tehran /etc/localtime
and your timezone is set.
 
Back
Top