mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +01:00
Filemanager: Apply user timezone to share created & last accessed columns
Also, use the better way to do it in file list too
This commit is contained in:
parent
1e79106264
commit
99147f1d9e
@ -108,6 +108,11 @@ class filemanager_shares extends filemanager_ui
|
|||||||
}
|
}
|
||||||
$row['share_passwd'] = (boolean)$row['share_passwd'];
|
$row['share_passwd'] = (boolean)$row['share_passwd'];
|
||||||
if ($row['share_with']) $row['share_with'] = preg_replace('/,([^ ])/', ', $1', $row['share_with']);
|
if ($row['share_with']) $row['share_with'] = preg_replace('/,([^ ])/', ', $1', $row['share_with']);
|
||||||
|
|
||||||
|
foreach(['share_created','share_last_accessed'] as $date_field)
|
||||||
|
{
|
||||||
|
$row[$date_field] = Api\DateTime::server2user($row[$date_field]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $total;
|
return $total;
|
||||||
}
|
}
|
||||||
|
@ -1003,9 +1003,7 @@ class filemanager_ui
|
|||||||
|
|
||||||
foreach(['mtime','ctime'] as $date_field)
|
foreach(['mtime','ctime'] as $date_field)
|
||||||
{
|
{
|
||||||
$time = new Api\DateTime($row[$date_field],Api\DateTime::$server_timezone);
|
$row[$date_field] = Api\DateTime::server2user($row[$date_field]);
|
||||||
$time->setUser();
|
|
||||||
$row[$date_field] = $time->format('ts');
|
|
||||||
}
|
}
|
||||||
$rows[++$n] = $row;
|
$rows[++$n] = $row;
|
||||||
$path2n[$path] = $n;
|
$path2n[$path] = $n;
|
||||||
|
Loading…
Reference in New Issue
Block a user