Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-08-22 15:25:04 +0300
committerRobin Appelman <robin@icewind.nl>2018-08-23 17:09:33 +0300
commitbf7fb2b0a2a927c4b5d16ac658f6304665833ccc (patch)
tree10b5d256f9e964febca330cd21fb0dcea28eaa57 /apps/files_external/3rdparty
parent50463e2d13acdeaf6bb2fd9973c597ae40642dbb (diff)
assume the same timezone when using local domain names for smb
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/3rdparty')
-rw-r--r--apps/files_external/3rdparty/icewind/smb/src/TimeZoneProvider.php3
1 files changed, 2 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 4438ee5bf7c..8dce76cb774 100644
--- a/apps/files_external/3rdparty/icewind/smb/src/TimeZoneProvider.php
+++ b/apps/files_external/3rdparty/icewind/smb/src/TimeZoneProvider.php
@@ -35,7 +35,8 @@ class TimeZoneProvider {
public function get() {
if (!$this->timeZone) {
$net = $this->system->getNetPath();
- if ($net) {
+ // for local domain names we can assume same timezone
+ if ($net && strpos($this->host, '.') !== false) {
$command = sprintf('%s time zone -S %s',
$net,
escapeshellarg($this->host)