duckduckgo / zeroclickinfo-spice

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

Time Spice doesn't work #1263

Closed puskin94 closed 9 years ago

puskin94 commented 9 years ago

If I try the query "time in Melbourne" or any other trigger, Time.pm returns nothing. I think that API request is broken. Can I rewrite totally this Spice with another implementation, deleting and retyping the entire code??

killerfish commented 9 years ago

Dont think thats the case, @chrisjwilsoncom can you check please.

jagtalon commented 9 years ago

Thanks--currently deploying it on DDH1 (where it's getting its data). @puskin94 what do you have in mind?

puskin94 commented 9 years ago

I thought i could get infos from https://api.duckduckgo.com/City&format=json&pretty=1 and read the UTC value, than add or subtract hours according to this value. Is it a good POC?

jagtalon commented 9 years ago

Works now (try it on DuckPAN):

screen shot 2014-11-02 at 14 35 15

That would work too, but we're sticking with Time and Date because they also give us holidays and other goodies which we're also interested in (but that functionality is not yet in the IA).