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

timeago.ago() with short param returns the same output for milliseconds and minutes #11

Open
djambrecina opened this issue Apr 10, 2019 · 1 comment

Comments

@djambrecina
Copy link

djambrecina commented Apr 10, 2019

When using ago() function with short param, it will display "m" both for milliseconds and minutes. Example:

const date = new Date();
date.setMilliseconds(date.getMilliseconds() - 10);
timeago.ago(date, true); // Returns "10m"

const date2 = new Date();
date2.setMinutes(date2.getMinutes() - 10);
timeago.ago(date2, true); // Also returns "10m"
@djambrecina djambrecina changed the title timeago.ago with short param returns the same output for milliseconds and minutes timeago.ago() with short param returns the same output for milliseconds and minutes Apr 10, 2019
@herbrandson
Copy link

It also returns the same value for "months" (i.e. "10m")

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