forse risolto il problema delle statistiche con le timezone

This commit is contained in:
Riccardo Di Dato
2016-04-18 16:24:14 +02:00
parent 5831307041
commit 1e3491a76f
+4 -4
View File
@@ -27,11 +27,11 @@ if (!is_null($action) && strcmp($action, "show")==0){
$showGraph = true;
$date = new DateTime(PostHandler::get("start")." 00:00", new DateTimeZone("Europe/Rome"));
$start = $date->format('U');
$date = new DateTime(PostHandler::get("start")." 00:00", new DateTimeZone("CET"));
$start = $date->getTimestamp();
$date = new DateTime(PostHandler::get("end")." 23:59", new DateTimeZone("Europe/Rome"));
$end = $date->format('U');
$date = new DateTime(PostHandler::get("end")." 23:59", new DateTimeZone("CET"));
$end = $date->getTimestamp();
// $start = strtotime(PostHandler::get("start")." 00:00");