forse risolto il problema delle statistiche con le timezone
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user