The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel crond datetime different?

Discussion in 'General Discussion' started by ivan levente, Apr 29, 2015.

  1. ivan levente

    ivan levente Member

    Joined:
    Apr 4, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. ivan levente

    ivan levente Member

    Joined:
    Apr 4, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page