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

🐛 [FreshRSS] PHP Startup: Invalid date.timezone value #2295

Open
3 tasks done
falkheiland opened this issue Jan 24, 2024 · 1 comment
Open
3 tasks done

🐛 [FreshRSS] PHP Startup: Invalid date.timezone value #2295

falkheiland opened this issue Jan 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@falkheiland
Copy link
Contributor

falkheiland commented Jan 24, 2024

Store Application

FreshRSS

App version

1.23.1

Description

logentry at startup:

[24-Jan-2024 11:57:46] NOTICE: PHP message: PHP Warning:  PHP Startup: Invalid date.timezone value '', using 'UTC' instead in Unknown on line 0

apps/freshrss/docker-compose.yml:

      - TZ=${TZ}

Steps to reproduce

n.a.

App logs

[24-Jan-2024 11:57:46] NOTICE: PHP message: PHP Warning:  PHP Startup: Invalid date.timezone value '', using 'UTC' instead in Unknown on line 0

Browser

No response

Browser logs

No response

User-Config changes

No response

Other

No response

Please confirm the following

  • I believe this issue is a bug that affects all users of RunTipi, not something specific to my installation.
  • I have already searched for relevant existing issues and discussions before opening this report.
  • I have updated the title field above with a concise description.
@falkheiland falkheiland added the bug Something isn't working label Jan 24, 2024
@MurkBRA
Copy link

MurkBRA commented Aug 28, 2024

You can find the TZ variable in the .env file in the runtipi root folder and face some thing like that:

POSTGRES_PORT=5432
REDIS_PASSWORD=
LOCAL_DOMAIN=tipi.local
POSTGRES_HOST=runtipi-db
REDIS_HOST=runtipi-redis
DOMAIN=example.com
ARCHITECTURE=amd64
ROOT_FOLDER_HOST=/home/dietpi/runtipi
NGINX_PORT_SSL=443
POSTGRES_PASSWORD=
RUNTIPI_APP_DATA_PATH=/home/dietpi/runtipi
TIPI_VERSION=v3.5.1
INTERNAL_IP=192.168.0.57
NGINX_PORT=80
NODE_ENV=production
APPS_REPO_ID=
APPS_REPO_URL=https://github.com/runtipi/runtipi-appstore
TZ=America/Sao_Paulo
DNS_IP=9.9.9.9
JWT_SECRET=
POSTGRES_DBNAME=tipi
POSTGRES_USERNAME=tipi
DEMO_MODE=false
GUEST_DASHBOARD=false
ALLOW_AUTO_THEMES=true
ALLOW_ERROR_MONITORING=false
PERSIST_TRAEFIK_CONFIG=false

But in my experience the TZ variable is not working as it should and it is necessary to create a docker-compose.yml in the user-config folder for each app and mount the localtime. Like that:

services:
  freshrss:
    volumes:
      - /etc/localtime:/etc/localtime:ro

Or:

services:
  freshrss:
    environment:
      - TZ=America/Sao_Paulo

Or:

services:
  freshrss:
    volumes:
      - /etc/localtime:/etc/localtime:ro
    environment:
      - TZ=America/Sao_Paulo

So the address your file docker-compose is runtipi/user-config/portainer/docker-compose.yml

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

No branches or pull requests

2 participants