NOW MANAGED ON CODEBERG
Made app core timezone configurable via env
Dan Brown5910e00fb8cc
diff --git a/.env.example.complete b/.env.example.completeindex 911d924df..37421a419 100644--- a/.env.example.complete+++ b/.env.example.complete@@ -32,6 +32,11 @@ APP_LANG=en# APP_LANG will be used if such a header is not provided.APP_AUTO_LANG_PUBLIC=true+# Application timezone+# Used where dates are displayed such as on exported content.+# Valid timezone values can be found here: https://www.php.net/manual/en/timezones.php+APP_TIMEZONE=UTC+# Database details# Host can contain a port (localhost:3306) or a separate DB_PORT option can be used.DB_HOST=localhostdiff --git a/config/app.php b/config/app.phpindex 682462462..aaeafb98d 100755--- a/config/app.php+++ b/config/app.php@@ -46,7 +46,7 @@ return ['url' => env('APP_URL', '') === 'http://bookstack.dev' ? '' : env('APP_URL', ''),// Application timezone for back-end date functions.- 'timezone' => 'UTC',+ 'timezone' => env('APP_TIMEZONE', 'UTC'),// Default locale to use'locale' => env('APP_LANG', 'en'),