mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
assume local timezone for local hostnames
This commit is contained in:
parent
4d0e89e722
commit
3cf60dcb56
1 changed files with 2 additions and 1 deletions
|
|
@ -35,7 +35,8 @@ class TimeZoneProvider {
|
||||||
public function get() {
|
public function get() {
|
||||||
if (!$this->timeZone) {
|
if (!$this->timeZone) {
|
||||||
$net = $this->system->getNetPath();
|
$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',
|
$command = sprintf('%s time zone -S %s',
|
||||||
$net,
|
$net,
|
||||||
escapeshellarg($this->host)
|
escapeshellarg($this->host)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue