forse finalmente risolto problema di timezone con le pipeline
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user