From 872ee180c73b222293a4e16887171af5c0c5ba20 Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 9 Aug 2023 12:13:15 +0200 Subject: [PATCH 1/2] UTC was moved to Etc/UTC Signed-off-by: Simon L --- Containers/mastercontainer/start.sh | 4 ++-- php/src/Docker/DockerActionManager.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Containers/mastercontainer/start.sh b/Containers/mastercontainer/start.sh index c0c37af25ab..e48a24cae97 100644 --- a/Containers/mastercontainer/start.sh +++ b/Containers/mastercontainer/start.sh @@ -304,8 +304,8 @@ E.g. https://internal.ip.of.this.server:8080 If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via: https://your-domain-that-points-to-this-server.tld:8443" -# Set the timezone to UTC -export TZ=UTC +# Set the timezone to Etc/UTC +export TZ=Etc/UTC # Fix apache startup rm -f /var/run/apache2/httpd.pid diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index 913598462a2..ef2a972bac6 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -317,7 +317,7 @@ public function CreateContainer(Container $container) : void { } } elseif ($out[1] === 'TIMEZONE') { if ($this->configurationManager->GetTimezone() === '') { - $replacements[1] = 'UTC'; + $replacements[1] = 'Etc/UTC'; } else { $replacements[1] = $this->configurationManager->GetTimezone(); } From 03e6f11a2644c62a1d513271f089f2493deaa105 Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 9 Aug 2023 14:51:46 +0200 Subject: [PATCH 2/2] add hint what the default is Signed-off-by: Simon L --- php/templates/containers.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/templates/containers.twig b/php/templates/containers.twig index c5f170d700a..16307c721c2 100644 --- a/php/templates/containers.twig +++ b/php/templates/containers.twig @@ -629,7 +629,7 @@ - You need to make sure that the timezone that you enter is valid. An example is Europe/Berlin. You can get valid values by looking at the 'TZ database name' column of this list: click here.

+ You need to make sure that the timezone that you enter is valid. An example is Europe/Berlin. You can get valid values by looking at the 'TZ database name' column of this list: click here. The default is Etc/UTC if nothing is entered.

{% else %} The timezone for Nextcloud is currently set to {{ timezone }}. You can reset the timezone again by clicking on the button below.