]> source.dussan.org Git - nextcloud-server.git/commitdiff
Write the parameter 'logtimezone' into config.php during setup
authorMartin <martin.mattel@diemattels.at>
Wed, 28 Jan 2015 12:45:13 +0000 (13:45 +0100)
committerMartin <martin.mattel@diemattels.at>
Wed, 28 Jan 2015 12:45:13 +0000 (13:45 +0100)
lib/private/setup.php

index a350838763fb464c68f2b1af28ab4217f2f9da61..d2053e66ceb97969e1732d70c76df61e5126f08e 100644 (file)
@@ -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);
                }