Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    6
    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:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ivan levente

    ivan levente Member

    Joined:
    Apr 4, 2015
    Messages:
    6
    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:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice