fix timezone statistiche

This commit is contained in:
Riccardo Di Dato
2016-04-18 15:58:36 +02:00
parent 34f90cc5f6
commit 51f2640916
+11 -2
View File
@@ -25,8 +25,17 @@ $end = time();
$action = PostHandler::get("action");
if (!is_null($action) && strcmp($action, "show")==0){
$showGraph = true;
$start = strtotime(PostHandler::get("start")." 00:01");
$end = strtotime(PostHandler::get("end")." 23:59");
$date = new DateTime(PostHandler::get("start")." 00:00", new DateTimeZone("Europe/Rome"));
$start = $date->format('U');
$date = new DateTime(PostHandler::get("end")." 23:59", new DateTimeZone("Europe/Rome"));
$end = $date->format('U');
// $start = strtotime(PostHandler::get("start")." 00:00");
// $end = strtotime(PostHandler::get("end")." 23:59");
}
?>
<div>