Skip to content

Commit 4de5ded

Browse files
committed
assume the same timezone when using local domain names for smb
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 46c679f commit 4de5ded

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/files_external/3rdparty/icewind/smb/src/TimeZoneProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public function __construct($host, System $system) {
3535
public function get() {
3636
if (!$this->timeZone) {
3737
$net = $this->system->getNetPath();
38-
if ($net) {
38+
// for local domain names we can assume same timezone
39+
if ($net && strpos($this->host, '.') !== false) {
3940
$command = sprintf('%s time zone -S %s',
4041
$net,
4142
escapeshellarg($this->host)

0 commit comments

Comments
 (0)