From 1e3491a76fdfc1c241b31946d91aa8ab77c4e5b4 Mon Sep 17 00:00:00 2001 From: Riccardo Di Dato Date: Mon, 18 Apr 2016 16:24:14 +0200 Subject: [PATCH] forse risolto il problema delle statistiche con le timezone --- public/admin/statCustom.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/admin/statCustom.php b/public/admin/statCustom.php index 640cb42..2659c1f 100644 --- a/public/admin/statCustom.php +++ b/public/admin/statCustom.php @@ -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");