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

Relative dates #686

Closed
JasonBarnabe opened this issue May 28, 2020 · 4 comments
Closed

Relative dates #686

JasonBarnabe opened this issue May 28, 2020 · 4 comments

Comments

@JasonBarnabe
Copy link
Collaborator

Where dates are used, show them differently based on how long ago they are, keeping in mind caching.

For example "30 minutes ago" rather than "2020-05-27".

@jixunmoe
Copy link
Contributor

jixunmoe commented May 29, 2020

https://github.com/github/time-elements#relative-time

This might be useful, it updates as time goes on as well. Also this is used in GitHub...

@JasonBarnabe
Copy link
Collaborator Author

Yeah something like that is what I want. Need to see how i18n is done though.

@knoajp
Copy link
Contributor

knoajp commented Jun 19, 2020

May it can be changed by user prefernce.
(I prefer actual dates :-)

JasonBarnabe added a commit that referenced this issue Dec 6, 2020
@JasonBarnabe
Copy link
Collaborator Author

Now using relative dates when it's less than 30 days, absolute otherwise.

JasonBarnabe added a commit that referenced this issue Dec 6, 2020
As it can be relative dates now #686
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