Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaflet-oilspill-control
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stw
leaflet-oilspill-control
Commits
64dd1ed7
Commit
64dd1ed7
authored
Sep 05, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dynamic dates on available times
parent
9f30829b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
demo/server.js
demo/server.js
+4
-1
No files found.
demo/server.js
View file @
64dd1ed7
...
...
@@ -67,8 +67,11 @@ app.get('/demo/input/785b50c5-4804-462d-8a24-1dc2c9fd14f8', function (req, res)
});
app
.
get
(
'
/demo/availableTimes/ms/HELCOM_NEMO
'
,
function
(
req
,
res
)
{
var
now
=
new
Date
();
var
from
=
new
Date
().
setHours
(
now
.
getHours
()
-
72
);
var
to
=
new
Date
().
setHours
(
now
.
getHours
()
+
120
);
res
.
send
(
{
"
availableTime
"
:{
"
start
"
:
1491094800000
,
"
stop
"
:
1492124400000
},
"
missingTime
"
:[]}
{
"
availableTime
"
:{
"
start
"
:
from
,
"
stop
"
:
to
},
"
missingTime
"
:[]}
);
});
...
...
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