summaryrefslogtreecommitdiffstats
path: root/lib/private/setup.php
diff options
context:
space:
mode:
authorMartin <martin.mattel@diemattels.at>2015-01-28 13:45:13 +0100
committerMartin <martin.mattel@diemattels.at>2015-01-28 13:45:13 +0100
commit21e3cd38ae89fa04be18e4edd96955f619dc2644 (patch)
tree3290e63e9db8cd52e20696d164ed84e3e93d6b31 /lib/private/setup.php
parent55142186deb9e163ce3519453ebfe93f6a446666 (diff)
downloadnextcloud-server-21e3cd38ae89fa04be18e4edd96955f619dc2644.tar.gz
nextcloud-server-21e3cd38ae89fa04be18e4edd96955f619dc2644.zip
Write the parameter 'logtimezone' into config.php during setup
Diffstat (limited to 'lib/private/setup.php')
-rw-r--r--lib/private/setup.php5
1 files changed, 5 insertions, 0 deletions
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);
}