Bug #13241
closedsyslogd doesn't honor the Timezone set in the System/General Setup
0%
Description
It shows the wrong time only in the Status/System Logs/System/General section.
I chose Europe/Belgrade Timezone.
Here is the system time:
Shell Output - date Fri Jun 3 10:01:50 CEST 2022
However, system logs show:
Jun 3 08:01:50 check_reload_status 399 Reloading filter
If I Reset Log Files, under Status/System Logs/Settings, the first entry will show the correct time.
Jun 3 10:06:05 syslogd kernel boot file is /boot/kernel/kernel
Then it will proceed with GMT Timezone:
Jun 3 08:06:43 php-fpm 79431 /interfaces.php: Configuration Change: admin@192.168.20.66 (Local Database): Interfaces settings changed Jun 3 08:06:43 check_reload_status 399 Syncing firewall Jun 3 08:06:44 php-fpm 52907 /interfaces.php: Gateway, NONE AVAILABLE
Other sections under Status/System Logs show the correct time.
Updated by Danilo Zrenjanin almost 3 years ago
I am getting the same results on:
22.01-RELEASE (amd64) built on Mon Feb 07 16:37:59 UTC 2022 FreeBSD 12.3-STABLE
and
2.7.0-DEVELOPMENT (amd64) built on Wed Jun 01 06:12:27 UTC 2022 FreeBSD 12.3-STABLE
Updated by Jim Pingle almost 3 years ago
- Status changed from New to Not a Bug
- Target version deleted (
CE-Next) - Plus Target Version deleted (
Plus-Next)
That isn't a bug. Each daemon picks up the time zone change when it starts, that isn't up to syslogd
. To fully activate the time zone change you have to either restart every single process on the system, or reboot, and rebooting is far easier. This is noted in the docs: https://docs.netgate.com/pfsense/en/latest/config/general.html#localization
Updated by Danilo Zrenjanin almost 3 years ago
Yeah right. It works fine after a reboot. I somehow omitted that part in the docs. Thanks!
However, adding the note from the docs in the GUI below the Timezone dropdown menu will be helpful.
Changing the zone requires a reboot to fully activate the new zone in all areas of the firewall.
Updated by Danilo Zrenjanin almost 3 years ago
Here is the feature request:
https://redmine.pfsense.org/issues/13244