diff options
author | Robin Appelman <robin@icewind.nl> | 2018-08-22 14:25:04 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-08-23 16:09:33 +0200 |
commit | bf7fb2b0a2a927c4b5d16ac658f6304665833ccc (patch) | |
tree | 10b5d256f9e964febca330cd21fb0dcea28eaa57 /apps/files_external/3rdparty/icewind/smb/src | |
parent | 50463e2d13acdeaf6bb2fd9973c597ae40642dbb (diff) | |
download | nextcloud-server-bf7fb2b0a2a927c4b5d16ac658f6304665833ccc.tar.gz nextcloud-server-bf7fb2b0a2a927c4b5d16ac658f6304665833ccc.zip |
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/icewind/smb/src')
-rw-r--r-- | apps/files_external/3rdparty/icewind/smb/src/TimeZoneProvider.php | 3 |
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) |