assume the same timezone when using local domain names for smb
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
05131490a7
commit
5d18d142a6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue