Fix Timezone Handling for Containers#375
Open
LSI-ZuagrastaWastl wants to merge 3 commits intoMISP:masterfrom
Open
Fix Timezone Handling for Containers#375LSI-ZuagrastaWastl wants to merge 3 commits intoMISP:masterfrom
LSI-ZuagrastaWastl wants to merge 3 commits intoMISP:masterfrom
Conversation
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.
ostefano
requested changes
Feb 15, 2026
| retries: 3 | ||
| start_period: 10s | ||
|
|
||
| configs: |
Collaborator
There was a problem hiding this comment.
Could you move this to a separate file and edit Dockerfile to COPY it at build time and run sed in there (like we do with the PHP files?
Your solution is much cleaner, but not everybody is using docker-compose.yml.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR standardizes timezone handling across all MISP Docker containers.
The timezone can now be set optionally via the
TZenvironment variable.If defined, it is applied globally and consistently across all containers and all processes, including system services, supervisord, background jobs, logs, and the MISP web interface.
If
TZis not set, the default remainsUTC.Changes
UTCBenefits
Best Regards from Bayern-CERT