Commit adcd438e authored by Raph El's avatar Raph El

Test

parent 573452c5
......@@ -141,6 +141,12 @@ function autoCompleteSearch(indexMin, indexMax, callBack, notUrl){
$("#map-loading-data").html("<i class='fa fa-spin fa-circle-o-notch'></i> "+trad.currentlyloading);
//mylog.dir(data);
if(typeof data.startDate != "undefined" && data.startDate != null){
data.startDateUTC = moment(data.startDate*1000).local().format();
}
$.ajax({
type: "POST",
url: baseUrl+"/" + moduleId + "/search/globalautocomplete",
......
......@@ -1788,7 +1788,7 @@ La vie en santé;Santé;;
//echo Yii::app()->getRequest()->getBaseUrl(true);
//date_default_timezone_set('UTC');
//$startD = "1577390400";
$date1 = date_create("2019-12-26T20:00:00Z");
$date1 = date_create("2020-01-14T00:00:00+01:00");
$startD = $date1->getTimestamp() ;
$tetst = array();
......@@ -1798,6 +1798,8 @@ La vie en santé;Santé;;
$date1 = date(DATE_RFC2822, $startD);
$dateEZAREZA = new DateTime("2020-01-14T00:00:00+01:00");
$dateParse = getdate($startD);
$endDay = mktime(23, 59, 59, $dateParse["mon"], $dateParse["mday"], $dateParse["year"]);
......@@ -1807,6 +1809,10 @@ La vie en santé;Santé;;
date_default_timezone_set('UTC');
$date2 = new MongoDate((float)$startD);
$tetst = array(
"startD" => $startD,
"date1" => $date1,
......@@ -1815,7 +1821,9 @@ La vie en santé;Santé;;
"dateParse" => $dateParse,
"startD" => $startD,
"endDay" => $endDay,
"endDayParse" => $endDayParse
"endDayParse" => $endDayParse,
"dateEZAREZA" => $dateEZAREZA,
"fzfzfez" => $dateEZAREZA->getTimestamp()
);
Rest::json($tetst);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment