Fixed timezone issue with SMB storage
Now forcing smbclient to also run on UTC
Backport of 1eb5ebd
to stable6
This commit is contained in:
parent
1e9f0409c3
commit
8ef32821be
|
@ -130,7 +130,7 @@ class smb {
|
||||||
// this put env is necessary to read the output of smbclient correctly
|
// this put env is necessary to read the output of smbclient correctly
|
||||||
$old_locale = getenv('LC_ALL');
|
$old_locale = getenv('LC_ALL');
|
||||||
putenv('LC_ALL=en_US.UTF-8');
|
putenv('LC_ALL=en_US.UTF-8');
|
||||||
$output = popen (SMB4PHP_SMBCLIENT." -N {$auth} {$options} {$port} {$options} {$params} 2>/dev/null", 'r');
|
$output = popen ('TZ=UTC '.SMB4PHP_SMBCLIENT." -N {$auth} {$options} {$port} {$options} {$params} 2>/dev/null", 'r');
|
||||||
$gotInfo = false;
|
$gotInfo = false;
|
||||||
$info = array ();
|
$info = array ();
|
||||||
$info['info']= array ();
|
$info['info']= array ();
|
||||||
|
|
Loading…
Reference in New Issue