Merge pull request #1881 from nextcloud/downstream-26354

log error when setting timezone to UTC fails
This commit is contained in:
Roeland Jago Douma 2016-10-24 21:14:59 +02:00 committed by GitHub
commit 112641236b
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')) {
throw new \RuntimeException('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.