log error when setting timezone to UTC fails (#26354)

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Jörn Friedrich Dreyer 2016-10-14 08:41:52 +02:00 committed by Roeland Jago Douma
parent 4d01f23978
commit 2e0e68b57f
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 3 additions and 1 deletions

View File

@ -625,7 +625,9 @@ class OC {
@ini_set('display_errors', 0);
@ini_set('log_errors', 1);
date_default_timezone_set('UTC');
if(!date_default_timezone_set('UTC')) {
\OC::$server->getLogger()->error('Could not set timezone to UTC');
};
//try to configure php to enable big file uploads.
//this doesn´t work always depending on the webserver and php configuration.