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!

Time / Timezone Issue

Discussion in 'General Discussion' started by osirion, Mar 6, 2016.

  1. osirion

    osirion Well-Known Member

    Joined:
    Jan 16, 2007
    Messages:
    50
    Likes Received:
    4
    Trophy Points:
    158
    Hi Guys,
    I've set my "server time" correctly under the section in WHM on my dedicated server. It reflects the same time as the actual time here.

    However, on:
    - Access Logs
    - Backup Logs
    (probably others too, but I've only noticed the above). The time is reported as UTC. EG, backup report:
    Start Time: Saturday, March 5, 2016 12:00:04 AM UTC
    End Time: Saturday, March 5, 2016 7:15:36 AM UTC
    Run Time: 7 hours, 15 minutes, and 32 seconds

    Why is that? Shouldnt it be using my time / timezone? (Which is set to Africa/Johannesburg which is GMT+2). Recently had to send customers access logs and had to tell them to add 2 hours to all the times they saw too because they were off by 2 hours.
     
  2. osirion

    osirion Well-Known Member

    Joined:
    Jan 16, 2007
    Messages:
    50
    Likes Received:
    4
    Trophy Points:
    158
    Tried that, still the same :/
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's by design those log files use UTC instead of your server's local time. Logging UTC timestamps prevents several potential issues that come with logging in local time (e.g. Daylight savings, time zone shifts, etc). It also saves memory on the system, as using local times would require additional functionality added to cpsrvd.

    Thank you.
     
    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