pat310 / google-trends-api

An API layer on top of google trends
https://www.npmjs.com/package/google-trends-api
MIT License
896 stars 178 forks source link

international dateformat fix #43

Closed philippnormann closed 7 years ago

philippnormann commented 7 years ago

data[0].f is a location specific string which cannot always be parsed by .toISOString(). Therefore I propose to use the data[0].v field, which contains an ISO 8601 timestamp, instead.

pat310 commented 7 years ago

@philippnormann thanks for the PR and sorry for the delay! I just made some big changes to the library so this isn't an issue anymore.