ivan levente

Member
Apr 4, 2015
13
1
53
Romania
cPanel Access Level
Root Administrator
Hello,

I've recently acquired a dedicated server and change it's default timezone from NewYork to Europe/Bucharest. Changed in both WHM server time settings and PHP configuration settings.
Everything changed accordingly except cronjob timestamps (saw this in /var/log/cron) which is still in the NewYork timezone for some reason. I tried restarting crond but still the same.

Anyone could shed some light on this? Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
Hello,

Does your hardware clock match the same time zone? EX:

Code:
hwclock
If not, you may need to sync it via:

Code:
hwclock --systohc --localtime
Thank you.
 

ivan levente

Member
Apr 4, 2015
13
1
53
Romania
cPanel Access Level
Root Administrator
Fixed it with the following:

/etc/init.d/rsyslog restart
/etc/init.d/crond restart

Seems the rsyslog and crond have problems adapting to server time-zone changes.
The restart did the trick, but only when restarted them both.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
I am happy to see the issue is now resolved. Thank you for updating us with the outcome.