assume the same timezone when using local domain names for smb

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2018-08-22 14:25:04 +02:00
parent 50463e2d13
commit bf7fb2b0a2
1 changed files with 2 additions and 1 deletions

View File

@ -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)