mirror of
https://github.com/pelican-dev/panel.git
synced 2026-03-01 11:21:31 +03:00
[PR #2112] [CLOSED] feat: make timezone configurable via APP_TIMEZONE env var #1763
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/2112
Author: @gavinmcfall
Created: 1/16/2026
Status: ❌ Closed
Base:
main← Head:fix/timezone-env-var📝 Commits (1)
051726afeat: make timezone configurable via APP_TIMEZONE env var📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
config/app.php(+1 -1)📄 Description
Summary
Allow users to configure the application timezone via the
APP_TIMEZONEenvironment variable, defaulting toUTCfor backwards compatibility.Problem
Currently the timezone is hardcoded to
UTCinconfig/app.php:This makes it impossible to configure the application timezone via environment variables, which is the standard configuration method for containerized deployments.
Solution
Change to read from environment variable with fallback:
Use Case
Containerized deployments (Docker, Kubernetes) where configuration is managed via environment variables rather than editing files. Users can now set
APP_TIMEZONE=America/New_York(or any valid timezone) in their container configuration.Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.