Skip to content

Commit

Permalink
Corrigindo a URL do /all e parsing de datas
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-jardim committed Dec 3, 2014
1 parent bb60a19 commit 82082ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions public/relatorioCodigo.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ window.onload = function() {
}

function toDateTime(dateTimeString) {
var dateBR = dateTimeString.substring(3, 6) + dateTimeString.substring(0, 2) + dateTimeString.substring(5);

return new Date(Date.parse(dateBR));
return new Date(dateTimeString);
}

// lines by buses count
Expand Down Expand Up @@ -139,12 +137,9 @@ window.onload = function() {
return output;
}

function getData() {

};
$(document).on('click', '#button', function() {
var selected = $('input[name="report"]:checked').val();
$.getJSON('http://192.168.1.128:8080/all?callback=?', function(data, status) {
$.getJSON('http://riob.us:81/all?callback=?', function(data, status) {
switch (selected) {
case "empty-lines":
result = emptyLines(data)
Expand Down
2 changes: 1 addition & 1 deletion riobus-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"host": "riob.us",
"path": "/all",
"port": 81,
"intervalTime": 10000
"intervalTime": 60000
}
}

0 comments on commit 82082ca

Please sign in to comment.