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:10:42 +0200 |
commit | 5d18d142a625738bba7e6605b0a6b4cf0feab69e (patch) | |
tree | 12ebc70914037d21c8e0c763a99a644f0087a199 /apps | |
parent | 05131490a75d1a33ba40fbf975c0bd79607702c8 (diff) | |
download | nextcloud-server-5d18d142a625738bba7e6605b0a6b4cf0feab69e.tar.gz nextcloud-server-5d18d142a625738bba7e6605b0a6b4cf0feab69e.zip |
assume the same timezone when using local domain names for smb
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-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 8d53c0d5f06..385d8fccdff 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) |