summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/3rdparty/icewind/smb/src/TimeZoneProvider.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_external/3rdparty/icewind/smb/src/TimeZoneProvider.php b/apps/files_external/3rdparty/icewind/smb/src/TimeZoneProvider.php
index fcdf7e3e879..4438ee5bf7c 100644
--- a/apps/files_external/3rdparty/icewind/smb/src/TimeZoneProvider.php
+++ b/apps/files_external/3rdparty/icewind/smb/src/TimeZoneProvider.php
@@ -41,7 +41,10 @@ class TimeZoneProvider {
escapeshellarg($this->host)
);
$this->timeZone = exec($command);
- } else { // fallback to server timezone
+ }
+
+ if ($this->timeZone) {
+ // fallback to server timezone
$this->timeZone = date_default_timezone_get();
}
}