[PR #5790] [MERGED] Timezones: Seperate display timezone and consistency update #6567

Closed
opened 2026-02-05 10:35:46 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/5790
Author: @ssddanbrown
Created: 9/4/2025
Status: Merged
Merged: 9/4/2025
Merged by: @ssddanbrown

Base: developmentHead: timezones


📝 Commits (2)

  • 579c1bf Timezones: Seperated out store & display timezones to two options
  • 36cb243 Timezones: Updated date displays to use consistent formats

📊 Changes

23 files changed (+181 additions, -84 deletions)

View changed files

📝 .env.example.complete (+6 -2)
📝 app/App/Providers/ViewTweaksServiceProvider.php (+13 -0)
📝 app/Config/app.php (+5 -3)
📝 app/Entities/Tools/PageEditActivity.php (+7 -12)
app/Util/DateFormatter.php (+26 -0)
📝 phpunit.xml (+2 -0)
📝 resources/views/comments/comment.blade.php (+47 -37)
📝 resources/views/common/activity-item.blade.php (+1 -1)
📝 resources/views/entities/grid-item.blade.php (+2 -2)
📝 resources/views/entities/list-item.blade.php (+2 -2)
📝 resources/views/entities/meta.blade.php (+4 -4)
📝 resources/views/exports/import-show.blade.php (+1 -1)
📝 resources/views/exports/parts/import.blade.php (+1 -1)
📝 resources/views/exports/parts/meta.blade.php (+2 -2)
📝 resources/views/pages/parts/image-manager-form.blade.php (+4 -4)
📝 resources/views/pages/parts/revisions-index-row.blade.php (+2 -2)
📝 resources/views/pages/parts/template-manager-list.blade.php (+1 -1)
📝 resources/views/settings/webhooks/edit.blade.php (+10 -2)
📝 resources/views/users/api-tokens/edit.blade.php (+4 -4)
📝 resources/views/users/parts/users-list-item.blade.php (+1 -1)

...and 3 more files

📄 Description

For #4786

Adds a new option to define the display time-zone separately from the storage/database time-zone.

Todo

  • Update existing time displays in-app to new use util class.

Doc Notes

  • Update notice: Advise existence of new option.
  • Update docs page about the timezone option.
    • Document the new option.
    • Update wording/detail for the existing timezone option.
    • Advise use of UTC for APP_TIMEZONE.
    • Mention possible shifts when changing APP_TIMEZONE value.

🔄 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/BookStackApp/BookStack/pull/5790 **Author:** [@ssddanbrown](https://github.com/ssddanbrown) **Created:** 9/4/2025 **Status:** ✅ Merged **Merged:** 9/4/2025 **Merged by:** [@ssddanbrown](https://github.com/ssddanbrown) **Base:** `development` ← **Head:** `timezones` --- ### 📝 Commits (2) - [`579c1bf`](https://github.com/BookStackApp/BookStack/commit/579c1bf4241270f96f527101f89a2c90c9b9cb6b) Timezones: Seperated out store & display timezones to two options - [`36cb243`](https://github.com/BookStackApp/BookStack/commit/36cb243d5e47afbdf6c7c847bed5c34454abfa48) Timezones: Updated date displays to use consistent formats ### 📊 Changes **23 files changed** (+181 additions, -84 deletions) <details> <summary>View changed files</summary> 📝 `.env.example.complete` (+6 -2) 📝 `app/App/Providers/ViewTweaksServiceProvider.php` (+13 -0) 📝 `app/Config/app.php` (+5 -3) 📝 `app/Entities/Tools/PageEditActivity.php` (+7 -12) ➕ `app/Util/DateFormatter.php` (+26 -0) 📝 `phpunit.xml` (+2 -0) 📝 `resources/views/comments/comment.blade.php` (+47 -37) 📝 `resources/views/common/activity-item.blade.php` (+1 -1) 📝 `resources/views/entities/grid-item.blade.php` (+2 -2) 📝 `resources/views/entities/list-item.blade.php` (+2 -2) 📝 `resources/views/entities/meta.blade.php` (+4 -4) 📝 `resources/views/exports/import-show.blade.php` (+1 -1) 📝 `resources/views/exports/parts/import.blade.php` (+1 -1) 📝 `resources/views/exports/parts/meta.blade.php` (+2 -2) 📝 `resources/views/pages/parts/image-manager-form.blade.php` (+4 -4) 📝 `resources/views/pages/parts/revisions-index-row.blade.php` (+2 -2) 📝 `resources/views/pages/parts/template-manager-list.blade.php` (+1 -1) 📝 `resources/views/settings/webhooks/edit.blade.php` (+10 -2) 📝 `resources/views/users/api-tokens/edit.blade.php` (+4 -4) 📝 `resources/views/users/parts/users-list-item.blade.php` (+1 -1) _...and 3 more files_ </details> ### 📄 Description For #4786 Adds a new option to define the display time-zone separately from the storage/database time-zone. ### Todo - [x] Update existing time displays in-app to new use util class. ### Doc Notes - Update notice: Advise existence of new option. - Update docs page about the timezone option. - Document the new option. - Update wording/detail for the existing timezone option. - Advise use of UTC for `APP_TIMEZONE`. - Mention possible shifts when changing `APP_TIMEZONE` value. --- <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 10:35:46 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#6567