duckduckgo / zeroclickinfo-spice

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

Beta Instant Answers (Internal): Modified time incorrect #2637

Closed GuiltyDolphin closed 8 years ago

GuiltyDolphin commented 8 years ago

I consistently get incorrect times for the 'Last Updated....' field, it was 5 hours behind during EST and switched to 4 hours behind after the switch to EDT, my TZ is currently BST (though was GMT until a few days ago).

screenshot from 2016-03-31 11 48 49


IA Page: http://duck.co/ia/view/experimentalia Maintainer: @vikashvverma

vikashvverma commented 8 years ago

@GuiltyDolphin @moollaza I'm not able to run the trigger for this IA locally, Can you help me out?

jdorweiler commented 8 years ago

@vikashvverma with duckpan? Try this SHOW_IA_TESTING=1 duckpan server. It triggers on all queries so I have it disabled unless you set an environment variable. https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Experimentalia.pm#L15

vikashvverma commented 8 years ago

@jdorweiler I did that still it says, Sorry, no hit for your instant answer

jdorweiler commented 8 years ago

@vikashvverma can you post your output from running that?

vikashvverma commented 8 years ago

@jdorweiler I'm trying to access it at this url http://localhost:3000/?q=testing&t=h&ia=iatesting, duckpan server is running on port 3000

jdorweiler commented 8 years ago

@vikashvverma is your repo up to date? Try setting the environment variable with export SHOW_IA_TESTING=1 and then run duckpan.

jdorweiler commented 8 years ago

Or if that fails you could just manually set this value to 1. https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Experimentalia.pm#L15

vikashvverma commented 8 years ago

@jdorweiler It works now, one of the dependency was not installed. Thanks

vikashvverma commented 8 years ago

@GuiltyDolphin the problem is because moment.js is giving relative time based on timezone, I will work on this