diff --git a/src/Wrapped/RawConnection.php b/src/Wrapped/RawConnection.php index 4aec674..3d84528 100644 --- a/src/Wrapped/RawConnection.php +++ b/src/Wrapped/RawConnection.php @@ -75,7 +75,8 @@ public function connect(): void { 'CLI_NO_READLINE' => 1, // Not all distros build smbclient with readline, disable it to get consistent behaviour 'LC_ALL' => Server::LOCALE, 'LANG' => Server::LOCALE, - 'COLUMNS' => 8192 // prevent smbclient from line-wrapping it's output + 'COLUMNS' => 8192, // prevent smbclient from line-wrapping it's output + 'TZ' => 'UTC', ]); $this->process = proc_open($this->command, $descriptorSpec, $this->pipes, '/', $env); if (!$this->isValid()) { diff --git a/src/Wrapped/Server.php b/src/Wrapped/Server.php index dd8513e..159a51e 100644 --- a/src/Wrapped/Server.php +++ b/src/Wrapped/Server.php @@ -66,7 +66,7 @@ public function listShares(): array { throw new ConnectionException((string)$connection->readLine()); } - $parser = new Parser($this->timezoneProvider->get($this->host)); + $parser = new Parser('UTC'); $output = $connection->readAll(); if (isset($output[0])) { diff --git a/src/Wrapped/Share.php b/src/Wrapped/Share.php index eb68d38..2df98c3 100644 --- a/src/Wrapped/Share.php +++ b/src/Wrapped/Share.php @@ -73,7 +73,7 @@ public function __construct(IServer $server, string $name, ISystem $system) { $this->server = $server; $this->name = $name; $this->system = $system; - $this->parser = new Parser($server->getTimeZone()); + $this->parser = new Parser('UTC'); } private function getAuthFileArgument(): string {