forse finalmente risolto problema di timezone con le pipeline

This commit is contained in:
Riccardo Di Dato
2016-04-18 16:36:43 +02:00
parent 365f00fe2a
commit daf03309a7
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -69,6 +69,11 @@ class PipelineHelper {
public static function getDailyVisualizationPipelineByStartAndEnd($startDate,$endDate){
$rval = array(
array(
'$project'=>array(
'date'=>array('$add'=>60*60*1000)
)
),
array(
'$match'=>array(
'statType'=>StatisticModel::STAT_TYPE_PAGE,
-1
View File
@@ -29,7 +29,6 @@ if (!is_null($action) && strcmp($action, "show")==0){
$date = new DateTime(PostHandler::get("start")." 00:00", new DateTimeZone("CET"));
$start = $date->getTimestamp();
echo $start;
$date = new DateTime(PostHandler::get("end")." 23:59", new DateTimeZone("CET"));
$end = $date->getTimestamp();