Improvement of Timezone Handling and Caddy Log Formatting #624
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.
Description:
It has been possible to set container timezones via the
TZenvironment variable without installingtzdata. To improve visibility and usability, I have explicitly added thisENVvariable to all Dockerfiles and updated the documentation.FrankenPHP & Caddy Logging:
Currently, the FrankenPHP images (using Caddy) output logs in UTC by default, which can complicate debugging. I have adjusted the Caddy configuration to:
TZvariable in log outputs.CADDY_LOG_DATETIME_FORMAT, allowing for custom timestamp formats supported by Caddy.Backward Compatibility:
These changes are fully backward compatible. Default values are in place, ensuring that if
TZorCADDY_LOG_DATETIME_FORMATare not set, the behavior remains exactly as it is now.Examples
docker-compose.yml
Running directly in your terminal: