Skip to content

Commit

Permalink
Typo where variable was overwritten and the time was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscarlsson committed Jan 15, 2013
1 parent c21407a commit 588530e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/stationboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ module.exports = function(options) {
var m = time.getMonth() + 1; //months are zero based
var y = time.getFullYear();
var h = time.getHours();
var m = time.getMinutes()
var min = time.getMinutes()
params.date = y + '-' + m + '-' + d;
params.time = h + ':' + m;
params.time = h + ':' + min;
shared.callApi('/arrivalBoard', params, callback);
}

Expand All @@ -52,9 +52,9 @@ module.exports = function(options) {
var m = time.getMonth() + 1; //months are zero based
var y = time.getFullYear();
var h = time.getHours();
var m = time.getMinutes()
var min = time.getMinutes()
params.date = y + '-' + m + '-' + d;
params.time = h + ':' + m;
params.time = h + ':' + min;
shared.callApi('/departureBoard', params, callback);
}

Expand All @@ -63,4 +63,4 @@ module.exports = function(options) {
, "getArrivals": getArrivals
}

}
}

0 comments on commit 588530e

Please sign in to comment.