Log timestamp differs from system time
Browsed around a decent bit, but didn't uncover anything that answered my question/solved the problem. Any information and help is appreciated!
2 Replies
If you changed your system's timezone, did you reboot since then? Or at least restart some services? Some programs might keep using the timezone they saw when they started up.
On a related note, everything on a server should be UTC/GMT. It's not fun trying to read log files during those two hours a year when all U.S. timezones suddenly change!
service rsyslog restart
I believe it's set to PST on the system. I used the following command to set it:
ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime
I haven't rebooted since I changed it, I only restarted the Apache service since that was my main reason for changing it. Which other services would need to be restarted?
Thanks for the tip regarding UTC/GMT as well! I'll keep it in mind!