[PR #8961] Set TZ=Etc/UTC in Ghostfolio installation script #7705

Open
opened 2025-11-20 08:06:32 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/community-scripts/ProxmoxVE/pull/8961

State: closed
Merged: Yes


✍️ Description

This PR updates the Ghostfolio installation script to explicitly set the timezone to UTC when configuring environment variables.

The change addresses the issue reported in [BUG] BenchmarkService "No historical market data has been found" #5069

Ghostfolio’s team has already identified that the root cause is related to time zone handling. Setting the TZ environment variable to Etc/UTC resolves the issue by ensuring consistent time calculations for benchmarks and historical data.

While this fix is unnecessary when running Ghostfolio inside Docker (since Docker containers use UTC by default), it is required for LXC environments, where the timezone is not automatically defined. Explicitly setting TZ=Etc/UTC ensures consistent and correct behavior in those setups.

This issue might also be related to the Issue
Link: Ghostfolio worker does not get created

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.
**Original Pull Request:** https://github.com/community-scripts/ProxmoxVE/pull/8961 **State:** closed **Merged:** Yes --- ## ✍️ Description This PR updates the Ghostfolio installation script to explicitly set the timezone to UTC when configuring environment variables. The change addresses the issue reported in [[BUG] BenchmarkService "No historical market data has been found" #5069](https://github.com/ghostfolio/ghostfolio/issues/5069) Ghostfolio’s team has already identified that the root cause is related to time zone handling. Setting the TZ environment variable to Etc/UTC resolves the issue by ensuring consistent time calculations for benchmarks and historical data. While this fix is unnecessary when running Ghostfolio inside Docker (since Docker containers use UTC by default), it is required for LXC environments, where the timezone is not automatically defined. Explicitly setting TZ=Etc/UTC ensures consistent and correct behavior in those setups. ## 🔗 Related PR / Issue This issue might also be related to the Issue Link: [Ghostfolio worker does not get created](https://github.com/community-scripts/ProxmoxVE/issues/8107) ## ✅ Prerequisites (**X** in brackets) - [X] **Self-review completed** – Code follows project standards. - [X] **Tested thoroughly** – Changes work as expected. - [X] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [X] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [ ] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs.
saavagebueno added the pull-request label 2025-11-20 08:06:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#7705