duckduckgo / zeroclickinfo-spice

DuckDuckGo Instant Answers based on JavaScript (JSON) APIs
https://duckduckhack.com/
Other
548 stars 942 forks source link

Forecast: Wrong result due to timezone #2701

Closed vikashvverma closed 8 years ago

vikashvverma commented 8 years ago

My timezone is IST and the IA is giving forecast of Phoenixville, PA which is wrong.

See the snaps below:

screen shot 2016-04-23 at 10 09 00 am screen shot 2016-04-23 at 10 11 59 am

Edit: This happened while running locally

IA Page: http://duck.co/ia/view/forecast

NaveenKarippai commented 8 years ago

This happened while running locally

let me quote words from @moollaza here:

if you're testing in DuckPAN the location by default is set to US. DuckPAN has no way of knowing where you're located :) In production we are able to detect the country a query came from and the IA uses that to choose the result to show. There are a few testing locations you can force DuckPAN to use: DDG_TEST_LOCATION=de duckpan server for example.

Also, check the available test locations.