From bced10cc351e10403481435f1f6012318d560b04 Mon Sep 17 00:00:00 2001 From: Daniel Brendel Date: Wed, 15 May 2024 22:31:11 +0200 Subject: [PATCH] Current timezone --- app/controller/admin.php | 3 +++ app/views/admin.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controller/admin.php b/app/controller/admin.php index d539649c..e7d9955d 100644 --- a/app/controller/admin.php +++ b/app/controller/admin.php @@ -50,6 +50,8 @@ public function index($request) } $timezone_identifiers = timezone_identifiers_list(); + $current_timezone = app('timezone', date_default_timezone_get()); + $plant_attributes = PlantDefAttrModel::getAll(); return parent::view(['content', 'admin'], [ @@ -61,6 +63,7 @@ public function index($request) 'themes' => $themes, 'api_keys' => $api_keys, 'timezone_identifiers' => $timezone_identifiers, + 'current_timezone' => $current_timezone, 'plant_attributes' => $plant_attributes, 'new_version' => $new_version, 'current_version' => $current_version diff --git a/app/views/admin.php b/app/views/admin.php index ada593ce..02fc3ea6 100644 --- a/app/views/admin.php +++ b/app/views/admin.php @@ -56,7 +56,7 @@