From 8ef32821bea66a0ef3be9c63f3e7f8d314191dec Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 14 Jan 2014 00:37:57 +0100 Subject: [PATCH] Fixed timezone issue with SMB storage Now forcing smbclient to also run on UTC Backport of 1eb5ebd to stable6 --- apps/files_external/3rdparty/smb4php/smb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/3rdparty/smb4php/smb.php b/apps/files_external/3rdparty/smb4php/smb.php index 6c91a6e49a3..cf7e55c736d 100644 --- a/apps/files_external/3rdparty/smb4php/smb.php +++ b/apps/files_external/3rdparty/smb4php/smb.php @@ -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 ();