[PR #713] [MERGED] Make sure UTC is always used internally #919

Closed
opened 2026-02-05 17:58:31 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/713
Author: @Boy132
Created: 11/15/2024
Status: Merged
Merged: 11/15/2024
Merged by: @Boy132

Base: mainHead: fix/enforce-utc-timezone


📝 Commits (5)

  • 617e888 force app timezone to be UTC
  • ee44546 remove asDateTime overwrite
  • 69d8266 add custom column to display dates in user timezone
  • 475d404 use APP_TIMEZONE as default timezone for new users
  • 8aef5cd revert accidental pinting

📊 Changes

7 files changed (+27 additions, -44 deletions)

View changed files

📝 app/Filament/Resources/ApiKeyResource/Pages/ListApiKeys.php (+3 -4)
📝 app/Filament/Resources/DatabaseHostResource/RelationManagers/DatabasesRelationManager.php (+2 -1)
📝 app/Filament/Resources/DatabaseResource/Pages/ListDatabases.php (+3 -4)
📝 app/Models/Model.php (+0 -35)
📝 app/Models/User.php (+2 -0)
app/Tables/Columns/DateTimeColumn.php (+15 -0)
📝 config/app.php (+2 -0)

📄 Description

The backend should always use UTC to avoid timezone problems.
On the (filament) frontend dates should be translated from UTC to the users timezone.

APP_TIMEZONE env variable is now only used as default timezone for new users.


🔄 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/pelican-dev/panel/pull/713 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 11/15/2024 **Status:** ✅ Merged **Merged:** 11/15/2024 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `fix/enforce-utc-timezone` --- ### 📝 Commits (5) - [`617e888`](https://github.com/pelican-dev/panel/commit/617e888e6f69e647d6b6c13e8ffd11a7aa199e6e) force app timezone to be UTC - [`ee44546`](https://github.com/pelican-dev/panel/commit/ee445463e3b2e3b8023b7c2a92f6f8e89326981d) remove asDateTime overwrite - [`69d8266`](https://github.com/pelican-dev/panel/commit/69d8266678a2fccc4d4041e094a6a69469a8be7f) add custom column to display dates in user timezone - [`475d404`](https://github.com/pelican-dev/panel/commit/475d40489e8cba7cfc930da55cade5fd048048a1) use `APP_TIMEZONE` as default timezone for new users - [`8aef5cd`](https://github.com/pelican-dev/panel/commit/8aef5cdd85c50263766c33210505f9d69e730980) revert accidental pinting ### 📊 Changes **7 files changed** (+27 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `app/Filament/Resources/ApiKeyResource/Pages/ListApiKeys.php` (+3 -4) 📝 `app/Filament/Resources/DatabaseHostResource/RelationManagers/DatabasesRelationManager.php` (+2 -1) 📝 `app/Filament/Resources/DatabaseResource/Pages/ListDatabases.php` (+3 -4) 📝 `app/Models/Model.php` (+0 -35) 📝 `app/Models/User.php` (+2 -0) ➕ `app/Tables/Columns/DateTimeColumn.php` (+15 -0) 📝 `config/app.php` (+2 -0) </details> ### 📄 Description The backend should _always_ use UTC to avoid timezone problems. On the (filament) frontend dates should be translated from UTC to the users timezone. `APP_TIMEZONE` env variable is now only used as default timezone for new users. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 17:58:31 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#919