Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Time: Off by 1-hour for DST affected locations #2611

Closed
moollaza opened this issue Mar 21, 2016 · 6 comments
Closed

Time: Off by 1-hour for DST affected locations #2611

moollaza opened this issue Mar 21, 2016 · 6 comments

Comments

@moollaza
Copy link
Member

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

@moollaza
Copy link
Member Author

/cc @duckduckgo/community-leaders -- we need to fix this ASAP if someone is available.

Sorry guys, false alarm: This problem is localized to my area...

@MrChrisW MrChrisW self-assigned this Mar 21, 2016
@MrChrisW
Copy link
Collaborator

this is leading to incorrect information.

Can you provide some example queries?

@moollaza
Copy link
Member Author

@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 $loc

@MrChrisW
Copy link
Collaborator

@moollaza 👍 Right... These changes were introduced in #2357

think what we'll want to do is trust the API if we deem the location to be relevant, instead of using DDG's $loc

You want to check the relevancy of the location returned by DDG $loc with the API response and present a result? However that won't fix any issues if the provided $loc is incorrect.

@moollaza
Copy link
Member Author

You want to check the relevancy of the location returned by DDG $loc with the API response and present a result? However that won't fix any issues if the provided $loc is incorrect.

@MrChrisW yeah you're right, I'm not sure what I was thinking -- I think we need to update our GeoIP Database 👍

@MrChrisW
Copy link
Collaborator

MrChrisW commented Aug 7, 2016

Closing in favour of #2567

@MrChrisW MrChrisW closed this as completed Aug 7, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants