[SOLVED] daemon log with wrong time

rolcom

Member
Jun 22, 2020
8
1
8
Hi,

My daemon.log file says: 21:46:00
While date will return 23:46:00 and within the Proxmox panel, the server time is also 23:46:00...

I can't find where to change that time, I'd like to fix that as this is affecting my fail2ban and I had to increase the bantime for the time being.

Does anyone have any clue?


Thanks for your time :)
 
How are you setting the time zone? If you are setting TZ in a login script or similar it won't affect system daemons.

Try "dpkg-reconfigure tzdata" to set it globally. You'll have to reboot or restart the appropriate daemons afterward.
 
How are you setting the time zone? If you are setting TZ in a login script or similar it won't affect system daemons.

Try "dpkg-reconfigure tzdata" to set it globally. You'll have to reboot or restart the appropriate daemons afterward.
I was changing the time zone from the panel, but I wasn't rebooting the server. The reboot applied the right timezones to the new entries of the log.

Thanks.