Fix Infolog timezone issue (Bug 8002)

This commit is contained in:
Jörg Lehrke 2010-03-15 18:06:14 +00:00
parent c53c27d9d4
commit a5a15414d3

View File

@ -912,9 +912,13 @@ class infolog_bo
function &search(&$query) function &search(&$query)
{ {
//echo "<p>boinfolog::search(".print_r($query,True).")</p>\n"; //echo "<p>boinfolog::search(".print_r($query,True).")</p>\n";
if (!empty($query['start'])) foreach ($this->timestamps as $key)
{ {
$query['start'] = egw_time::user2server($query['start'],'ts'); $key = substr($key, 5);
if (!empty($query[$key]))
{
$query[$key] = egw_time::user2server($query[$key],'ts');
}
} }
$ret = $this->so->search($query); $ret = $this->so->search($query);