diff --git a/root/app/www/public/ajax/settings.php b/root/app/www/public/ajax/settings.php
index 3ce9d40..40efe22 100644
--- a/root/app/www/public/ajax/settings.php
+++ b/root/app/www/public/ajax/settings.php
@@ -24,6 +24,7 @@
}
closedir($dir);
+ $serverTime = apiRequest('server/time')['result']['result'];
?>
Instance
@@ -37,6 +38,13 @@
+
+ Server timezone |
+
+ = $serverTime['timezone'] ?>
+ |
+ The current timezone being used for this instance. Datetime: = $serverTime['time'] ?> |
+
Server name |
diff --git a/root/app/www/public/functions/api.php b/root/app/www/public/functions/api.php
index 3c17d65..bd6ecac 100644
--- a/root/app/www/public/functions/api.php
+++ b/root/app/www/public/functions/api.php
@@ -300,6 +300,9 @@ function apiRequestLocal($endpoint, $parameters = [], $payload = [])
}
return gitVersion(true);
+ case 'server/time':
+ case 'server-time':
+ return apiResponse(200, ['timezone' => date_default_timezone_get(), 'time' => date('c')]);
case 'stats/containers':
case 'stats-getContainersList':
return apiResponse(200, getContainerStats());
|