summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2016-10-14 08:41:52 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-24 21:14:40 +0200
commit2e0e68b57f456da6272b1af291620b34874ee01d (patch)
tree29f7ea972f465329c7065e28722568ad67ece89a
parent4d01f23978549c2a33e9fdfdc3b9308cc9dc1078 (diff)
downloadnextcloud-server-2e0e68b57f456da6272b1af291620b34874ee01d.tar.gz
nextcloud-server-2e0e68b57f456da6272b1af291620b34874ee01d.zip
log error when setting timezone to UTC fails (#26354)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-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..bcb81662c0e 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')) {
+ \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.