[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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!