Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Timezone in php #26

Open
vgarcia007 opened this issue Sep 16, 2024 · 1 comment · Fixed by #32
Open

Wrong Timezone in php #26

vgarcia007 opened this issue Sep 16, 2024 · 1 comment · Fixed by #32
Assignees
Labels
bug Something isn't working

Comments

@vgarcia007
Copy link
Collaborator

The time zone is displayed as UTC by PHP, even though it is set to Europe/Berlin in the compose file. It might be necessary to write the time zone into the php.ini.

The runScanner.sh script could possibly handle this. It could read the time zone from the environment variable and accordingly write a string into the php.ini.

@vgarcia007 vgarcia007 changed the title Wron Timezone in php Wrong Timezone in php Sep 16, 2024
@PhilippMundhenk
Copy link
Owner

It seems that TZ is not an env that is available to www-data, the user running lighttpd and thus php. Writing TZ on boot to php.ini seems to make sense. There is also some adaptions of the lighttpd config with sed. A similar approach could be used for php, possibly more difficult, if accounting for different php versions (/etc/php/8.1/php.ini)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants