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
4126ef2217
commit
c7f89d014c
1 changed files with 2 additions and 1 deletions
|
|
@ -28,7 +28,8 @@ class TimeZoneProvider implements ITimeZoneProvider {
|
|||
public function get($host) {
|
||||
if (!isset($this->timeZones[$host])) {
|
||||
$net = $this->system->getNetPath();
|
||||
if ($net && $host) {
|
||||
// for local domain names we can assume same timezone
|
||||
if ($net && $host && strpos($host, '.') !== false) {
|
||||
$command = sprintf('%s time zone -S %s',
|
||||
$net,
|
||||
escapeshellarg($host)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue