]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge pull request #13733 from mmattel/Try_to_write_logtimezone_during_installation
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 16 Mar 2015 16:04:06 +0000 (17:04 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 16 Mar 2015 16:04:06 +0000 (17:04 +0100)
Write the parameter 'logtimezone' into config.php during setup

1  2 
lib/private/setup.php

index 830a6176caffa3a8fce167b7df304678526817bb,d2053e66ceb97969e1732d70c76df61e5126f08e..044b57f6c8c2c6e1ef216ac0e178bbc3efe12d24
@@@ -328,8 -236,13 +328,13 @@@ class 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);
 +                      $config->setSystemValue('installed', true);
                }
  
                return $error;