Closed RLinden22 closed 3 years ago
Hi, it's / not .
I get also these warnings when the container is started without TZ variable specified. How to disable this warning?
I cannot replicate this. The default is Europe/Amsterdam
. Are you sure this is a new spotweb instance?
root@faf73eb58cb7:/# php -i | grep timezone
Default timezone => Europe/Amsterdam
date.timezone => Europe/Amsterdam => Europe/Amsterdam
When I run this, I get: php.ini: Container is created yesterday and is started without TZ variable.
That's very, very strange. Can you run docker inspect spotweb | grep TZ
and paste the output here?
Ok, and what does docker exec -ti Spotweb cat /etc/php/7.4/cli/php.ini | grep timezone
output?
This should output:
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/Amsterdam
Here is the output: . Here is also the date output from PHPinfo: and the main and the output with the php.ini mentioned in the phpinfo:
I can't think of a reason, I can't replicate this issue. Can you remove the container docker rm -f Spotweb
and recreate?
just to chime in...I'm not seeing the error. I do have a TZ environment variable set to Europe/Amsterdam
and in docker compose entry looks like:
spotweb:
image: jgeusebroek/spotweb:latest
container_name: spotweb
hostname: spotweb
security_opt:
- no-new-privileges:true
volumes:
- ${USERDIR}/docker/spotweb:/config
ports:
- 8082:80
restart: always
environment:
- SPOTWEB_DB_TYPE=pdo_mysql
- SPOTWEB_DB_HOST=mariadb
- SPOTWEB_DB_NAME=spotweb
- SPOTWEB_DB_USER=spotweb
- SPOTWEB_DB_PASS=spotweb
- SPOTWEB_CRON_RETRIEVE=*/30 * * * *
- SPOTWEB_CRON_CACHE_CHECK=10 */1 * * *
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
thanks for the great image Jeroen!
Deleted the container, deleted the image. Downloaded the image, created the container (without TZ variable). Started the container and I have no Timezone warning.... Thanks for the support and keep up the good work for this image !.
Can't explain the behavior with the first container, was created the same way....
Thanks @proddy! and glad it's fixed now @RLinden22. I suspect the first container wasn't actually removed. And the \ / mixup caused the initial problem.
Have a nice day!
Created a container with the latest build, after completing the install, this message is displayed: "Warning: strftime(): Invalid date.timezone value 'EuropeAmsterdam', we selected the timezone 'UTC' for now. in /var/www/spotweb/lib/SpotTemplateHelper.php on line 1058", in the list of spots. Tried to start the container with "TZ = Europe\Amsterdam" but error still appears.