Commit 371d191e authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer Committed by Thomas Müller
Browse files

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

parent a537a131
......@@ -537,7 +537,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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment