From bf7fb2b0a2a927c4b5d16ac658f6304665833ccc Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 22 Aug 2018 14:25:04 +0200 Subject: [PATCH] assume the same timezone when using local domain names for smb Signed-off-by: Robin Appelman --- .../3rdparty/icewind/smb/src/TimeZoneProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)