Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post date in search result is not correct #9

Open
boltomli opened this issue Mar 21, 2019 · 1 comment
Open

post date in search result is not correct #9

boltomli opened this issue Mar 21, 2019 · 1 comment

Comments

@boltomli
Copy link

For example, post on Dec 12 would be parse as the next Dec 12, no matter when it actually was. The problem might be hard since the search result HTML doesn't contain such information.

Sample result page

In the js parser it's parsed by var date = Date.parse(new Date().toString().replace(/(\w+) \w+ \d+ (.*)/, '$1 ' + decode(dateStr) + ' $2'));

A workaround perhaps: since the result is sorted by date, when the date is later than the previous post, minus one year, and repeat until it's earlier.

@Maxwin-z
Copy link
Owner

是的,根据时间线去推测年份是可行的,但依然无法做到100%的准确年份,例如当前是2019年,上一个12月可能是2017年的。因此我保留了这个bug,需要一个全新的设计才能修复,但这个功能使用频次较低,当前没用重构的诉求。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants