aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/base.php4
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.