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

Closed
opened 2026-02-26 16:30:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/8961
Author: @LuloDev
Created: 11/7/2025
Status: Merged
Merged: 11/8/2025
Merged by: @MickLesk

Base: mainHead: ghostfolio-timezone


📝 Commits (1)

  • da363e2 Set TZ=Etc/UTC in Ghostfolio installation script when configuring environment variables

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 install/ghostfolio-install.sh (+1 -0)

📄 Description

✍️ 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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/8961 **Author:** [@LuloDev](https://github.com/LuloDev) **Created:** 11/7/2025 **Status:** ✅ Merged **Merged:** 11/8/2025 **Merged by:** [@MickLesk](https://github.com/MickLesk) **Base:** `main` ← **Head:** `ghostfolio-timezone` --- ### 📝 Commits (1) - [`da363e2`](https://github.com/community-scripts/ProxmoxVE/commit/da363e25acea95d2b0ef4d3678e74b901dea7277) Set TZ=Etc/UTC in Ghostfolio installation script when configuring environment variables ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `install/ghostfolio-install.sh` (+1 -0) </details> ### 📄 Description ## ✍️ 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 16:30:31 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#7740
No description provided.