Skip to content

Commit 46c679f

Browse files
committed
improved fallback of timezone detection
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent c138907 commit 46c679f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ public function get() {
4141
escapeshellarg($this->host)
4242
);
4343
$this->timeZone = exec($command);
44-
} else { // fallback to server timezone
45-
$this->timeZone = date_default_timezone_get();
4644
}
45+
46+
// fallback to server timezone
47+
$this->timeZone = date_default_timezone_get();
4748
}
4849
return $this->timeZone;
4950
}

0 commit comments

Comments
 (0)