From 21e3cd38ae89fa04be18e4edd96955f619dc2644 Mon Sep 17 00:00:00 2001
From: Martin <martin.mattel@diemattels.at>
Date: Wed, 28 Jan 2015 13:45:13 +0100
Subject: [PATCH] Write the parameter 'logtimezone' into config.php during
 setup

---
 lib/private/setup.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/private/setup.php b/lib/private/setup.php
index a350838763f..d2053e66ceb 100644
--- a/lib/private/setup.php
+++ b/lib/private/setup.php
@@ -236,6 +236,11 @@ class OC_Setup {
 				self::protectDataDirectory();
 			}
 
+			//try to write logtimezone
+			if (date_default_timezone_get()) {
+				OC_Config::setValue('logtimezone', date_default_timezone_get());
+			}
+
 			//and we are done
 			OC_Config::setValue('installed', true);
 		}
-- 
GitLab