Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(geolocation): change datetime format in request
Browse files Browse the repository at this point in the history
Edit datetime format for beginDate parameter
Edit datetime format for endDate parameter

Signed-off-by: Luis F. Gonzalez <lgonzalez@teclib.com>
  • Loading branch information
ingluife authored and DIOHz0r committed Jun 22, 2018
1 parent ba17091 commit 4e8affc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tpl/computer_geolocation.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}
function onLocationFound(e) {
map.setView(e.latlng, 13);
map.setView(e.latlng, 13);
}
function onLocationError(e) {
Expand Down Expand Up @@ -80,18 +80,18 @@
var fromDate = new Date(ui.values[0] * 1000);
var toDate = new Date(ui.values[1] * 1000);
$('#fromDateRange').html(fromDate.toDateString());
$('#showdate' + randBegin).val(fromDate.toString().slice(0, 33));
$('#showdate' + randBegin).val(fromDate.toISOString());
$('#toDateRange').html(toDate.toDateString());
$('#showdate' + randEnd).val(toDate.toString().slice(0, 33));
$('#showdate' + randEnd).val(toDate.toISOString());
loadMarkers();
}
});
var fromDate = new Date(sliderRange.slider("values", 0) * 1000);
var toDate = new Date(sliderRange.slider("values", 1) * 1000);
$('#fromDateRange').html(fromDate.toDateString());
$('#showdate' + randBegin).val(fromDate.toString().slice(0, 33));
$('#showdate' + randBegin).val(fromDate.toISOString());
$('#toDateRange').html(toDate.toDateString());
$('#showdate' + randEnd).val(toDate.toString().slice(0, 33));
$('#showdate' + randEnd).val(toDate.toISOString());
loadMarkers();
}
Expand Down

0 comments on commit 4e8affc

Please sign in to comment.