]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed timezone issue with SMB storage
authorVincent Petry <pvince81@owncloud.com>
Mon, 13 Jan 2014 23:37:57 +0000 (00:37 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 13 Jan 2014 23:37:57 +0000 (00:37 +0100)
Now forcing smbclient to also run on UTC

apps/files_external/3rdparty/smb4php/smb.php

index e454ddecb81e24cb6f39b906c11ec8b94ae378ee..622942b052a0861454d87f4ea8e9c2603e3d6cb0 100644 (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 ();