Time: Off by 1-hour for DST affected locations #2611
Comments
Sorry guys, false alarm: This problem is localized to my area... |
Can you provide some example queries? |
@MrChrisW it turns out the problem isn't really with the IA, it's with the anonymized location our Location API gives for my IP. It's giving a location 1200KM away which happens to be in the next time-zone over, so the IA is working correctly, based on the info given to it and how we’re dealing with it. @MrChrisW I think what we'll want to do is trust the API if we deem the location to be relevant, instead of using DDG's |
@moollaza 👍 Right... These changes were introduced in #2357
You want to check the relevancy of the location returned by DDG |
@MrChrisW yeah you're right, I'm not sure what I was thinking -- I think we need to update our GeoIP Database 👍 |
Closing in favour of #2567 |
DST has taken affect and so times have shifted by 1 hour. It looks like we're not using the API's results but instead we're using Moment.js to parse the timezone -- this is leading to incorrect information.
When I inspect the results from the API everything looks correct. Similarly, a new JS Date object also has the correct info.
We should trust the API when the location is deemed relevant. I don't think we should be parsing timezones.
IA Page: http://duck.co/ia/view/time
Maintainer: @MrChrisW
The text was updated successfully, but these errors were encountered: