summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 35ec6e9)
raw | patch | inline | side by side (parent: 35ec6e9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 23 Nov 2007 09:56:32 +0000 (09:56 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 23 Nov 2007 09:56:32 +0000 (09:56 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7866 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/addons/logview/class_gosa_logview.inc | patch | blob | history |
diff --git a/plugins/addons/logview/class_gosa_logview.inc b/plugins/addons/logview/class_gosa_logview.inc
index e538cb0be42d4e7bd2b92f2a06bad52bcba298bc..5f1513ae2459bb7def4ebdf7c267cbd2ca72e5c2 100644 (file)
var $range = 25;
var $view_logged = FALSE;
+ var $timezone_offset = 0;
function gosa_logview (&$config, $dn= NULL)
{
$this->$attr = $_SESSION['logview']['gosa_log'][$attr];
}
}
+
+ $tz = get_default_timezone();
+ $this->timezone_offset = $tz['value'] * 60 * 60 ;
}
"4" => _("2 days"), "5" => _("one week"),
"6" => _("2 weeks"), "7" => _("one month"));
+
+ $time = time();
$date_select_ = array(
- "0" => time() - 3600,
- "1" => time() - 21600,
- "2" => time() - 43200,
- "3" => time() - 86400,
- "4" => time() - 172800,
- "5" => time() - 604800,
- "6" => time() - 1209600,
- "7" => time() - 2419200);
+ "0" => $time - 3600,
+ "1" => $time - 21600,
+ "2" => $time - 43200,
+ "3" => $time - 86400,
+ "4" => $time - 172800,
+ "5" => $time - 604800,
+ "6" => $time - 1209600,
+ "7" => $time - 2419200);
$smarty= get_smarty();
$smarty->assign("search_result", "");
$desc= "";
$sort_sign="/\\";
}
- $end= date ("YmdHis");
+ $end= date ("YmdHis",time());
$query_base= " FROM
gosa_log
WHERE
$res.=" <tr style=\"$col\">\n";
$res.=" <td title='".$line['objecttype']."'>".$line['action']."</td>";
- $res.=" <td>".date("H:i:s d.m.Y",$line['timestamp'])."</td>";
+ $res.=" <td>".date("H:i:s d.m.Y",($line['timestamp'] + $this->timezone_offset))."</td>";
$res.=" <td title='".$line['user']."'>".preg_replace("/,/",", ",$user)."</td>";
$res.=" <td title='".$line['objecttype']."'>".$line['objecttype']."</td>";
$res.=" <td title='".$line['object']."'>".preg_replace("/,/",", ",$object)."</td>";