diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-10-24 21:14:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-24 21:14:59 +0200 |
commit | 112641236b49dc3632c2ca4c110652a8808cfbcf (patch) | |
tree | d5e11a9f40092c4359b1f95645628d9f778ed7b9 | |
parent | 4d01f23978549c2a33e9fdfdc3b9308cc9dc1078 (diff) | |
parent | f920153f163299d3ee99d07307b9af7f16b2041d (diff) | |
download | nextcloud-server-112641236b49dc3632c2ca4c110652a8808cfbcf.tar.gz nextcloud-server-112641236b49dc3632c2ca4c110652a8808cfbcf.zip |
Merge pull request #1881 from nextcloud/downstream-26354
log error when setting timezone to UTC fails
-rw-r--r-- | lib/base.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 0c4acab8fd2..883c1f54b17 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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. |