Skip to content

Bug-fix for : Not all supervisord use TZ#401

Merged
ostefano merged 21 commits intoMISP:masterfrom
LSI-Bayern:master
Mar 23, 2026
Merged

Bug-fix for : Not all supervisord use TZ#401
ostefano merged 21 commits intoMISP:masterfrom
LSI-Bayern:master

Conversation

@LSI-ZuagrastaWastl
Copy link
Contributor

Fixes issues: #400

As far as I can tell, the cause is echo $TZ /etc/locatime. I don't quite understand why this is the case. This command was actually intended to serve as an additional safeguard.
However, without this command, all Supervisors use the TZ value.

Add timezone setting option to template.env
- Add timezone environment variable to all services
- Setting Default to "UTC"
- Add timezone configuration for PHP in docker-compose file.
- Replace PHP timezone in misp-core with the new config-file tzone.ini

Perhaps there are better solutions for changing the time zone from PHP during runtime.
Updated PHP timezone configuration 
and added symlink for timezone for supervisord.
sed dosen´t use "?"  so PHP_TIMEZONE was setting in php.ini
PHP_TIMEZONE wasn`t in template.env and so most not in use.
TZ Variable the global Timezone variable in this Project
Removed timezone configuration from docker-compose.
With the "sed fix" in the entrypoint_fpm.sh, No need to mount a separate file now
Updated timezone setting method for supervisord compatibility with debian standard methode
add `-` so default (UTC) is in use, if TZ is not in use
PHP_timezone isn`t in use
TZ exist
CET or CEST not useable timezone in /usr/share/zoneinfo/
Remove default value for TZ when setting timezone.
Remove the space from the pattern (`= .*` → `=.*`) to make it more flexible.
Remove setting of /etc/timezone for compatibility.
It appears that not all Supervisors use the TZ value.
@ostefano ostefano merged commit c233f55 into MISP:master Mar 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants