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.

Time / Timezone Issue

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

  1. osirion

    osirion Active Member

    Joined:
    Jan 16, 2007
    Messages:
    28
    Likes Received:
    1
    Trophy Points:
    3
    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 Active Member

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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    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.
     
Loading...

Share This Page