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

Why does fromNow why skip from 25 days to a month? #22

Open
jcalfee opened this issue Jun 29, 2017 · 0 comments
Open

Why does fromNow why skip from 25 days to a month? #22

jcalfee opened this issue Jun 29, 2017 · 0 comments

Comments

@jcalfee
Copy link
Contributor

jcalfee commented Jun 29, 2017

If this becomes an issue the solution may be to customize the relative thresholds:

moment/moment#4040

Example

    moment('2017-07-21T11:03:57').fromNow()
    'in 25 days'
    moment('2017-07-22T11:03:57').fromNow()
    'in a month'

Also this would jump from 10 months to a year..

More accuracy may be desired.

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

1 participant