Merge pull request #6759 from owncloud/extstorage-smbtimezonefix

Fixed timezone issue with SMB storage
This commit is contained in:
Vincent Petry 2014-01-14 06:03:24 -08:00
commit ab21c25e38
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class smb {
// this put env is necessary to read the output of smbclient correctly
$old_locale = getenv('LC_ALL');
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;
$info = array ();
$info['info']= array ();