fix timezone statistiche
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user