Skip to content

Commit

Permalink
Merge pull request #13 from vightel/master
Browse files Browse the repository at this point in the history
Support time as string
  • Loading branch information
mateodelnorte committed Sep 22, 2016
2 parents a3f6b7e + e891441 commit d1a8c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Forecast.prototype.buildUrl = function buildUrl (latitude, longitude, time, opti
var query = '?' + qs.stringify(options);
var url = this.url + latitude + ',' + longitude;

if (typeof time === 'number') {
if ((typeof time === 'number')||(typeof time === 'string')) {
url += ',' + time;
}

Expand Down

0 comments on commit d1a8c86

Please sign in to comment.