osirion

Well-Known Member
Jan 16, 2007
54
4
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
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.