Live data from Hacker News

Ask HN: Is Hacker News API returning wrong “time”?

news.ycombinator.com

1–9 of 9 posts

Re: Ask HN: Is Hacker News API returning wrong “time”?

#2
I dont understand why the item page shows “5 hours ago”, but if you filter by domain : https://news.ycombinator.com/from?site=sivers.org, the same item is labeled “3 days ago”, so the API is rather correct. Maybe the timestamp shown on the item page is incorrect, or that the url was re-submitted?

Re: Ask HN: Is Hacker News API returning wrong “time”?

#3
post #2

I dont understand why the item page shows “5 hours ago”, but if you filter by domain : https://news.ycombinator.com/from?site=sivers.org , the same item is labeled “3 days ago”, so the API is rather correct. Maybe the timestamp shown on the item page is incorrect, or that the url was re-submitted?

I think there are posts that are automatically reposted according to some algorithm - could this be such a post?

Re: Ask HN: Is Hacker News API returning wrong “time”?

#5
post #4

Recently developing a tool and I found this happed very common. You can see https://news.ycombinator.com/item?id=21268584 is "5 hours ago", but from my tool( https://hn.okphp.com/?k=digital,postgres ) it is "3 days ago"(my tool is using official api timestamp)

I guess it is caused by re-posting. But the api returns the "time" the link first posted.

Re: Ask HN: Is Hacker News API returning wrong “time”?

#7
I noticed that when one of my posts is resubmitted (via second-chance pool) it seems to appear with the time of the resubmit and not the time I posted it originally. I observed this on the website, I never checked the API and maybe this is unrelated to the original question from above. It may even be intentional but probably not many posters know about it.