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

Less than a minute from now #168

Open
NathanHazout opened this issue Feb 20, 2014 · 3 comments
Open

Less than a minute from now #168

NathanHazout opened this issue Feb 20, 2014 · 3 comments

Comments

@NathanHazout
Copy link

I have enabled future support (because some of my posts have an "expiration date").
The problem now is that some users are reporting seeing "less than a minute from now" (more specifically, in French "d'ici moins d'une minute", which mean 1 minute into the future).
They see this I assume when they just posted something, so the current time is very close to the post date. It looks funny and wrong. As if they've just posted something into the future...

@rmm5t
Copy link
Owner

rmm5t commented Feb 21, 2014

Interesting. Do you have a proposed solution to this problem? Do you know how far off peoples machines are from true time? Do you think a ~5 second buffer that helps the fuzzy timestamps assume their in the future (within 5 secs) would help?

@NathanHazout
Copy link
Author

I'm not sure as it doesn't happen to me.
But I assume it would not be much, so maybe 5 seconds would work.

@mbillard
Copy link

mbillard commented May 2, 2014

We've experienced this too. Our solution was to tweak the library to be able to allow future only one some elements by using a data attribute. If future is not allowed and the time is in the future, we just use the just now label.

If that sounds like a good solution to this problem for you too, we can clean the code up a bit and submit a pull request.

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

3 participants