Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Pixel Humain
co2
Commits
adcd438e
Commit
adcd438e
authored
Jan 14, 2020
by
Raph El
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test
parent
573452c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
assets/js/default/directory.js
assets/js/default/directory.js
+6
-0
controllers/TestController.php
controllers/TestController.php
+10
-2
No files found.
assets/js/default/directory.js
View file @
adcd438e
...
...
@@ -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
"
,
...
...
controllers/TestController.php
View file @
adcd438e
...
...
@@ -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
(
"20
19-12-26T2
0:00:00
Z
"
);
$date1
=
date_create
(
"20
20-01-14T0
0: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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment