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

current time starts from 5 minutes #54

Open
ashfaqrafi opened this issue Jan 7, 2018 · 1 comment
Open

current time starts from 5 minutes #54

ashfaqrafi opened this issue Jan 7, 2018 · 1 comment

Comments

@ashfaqrafi
Copy link

ashfaqrafi commented Jan 7, 2018

I have used moment in the react project, but as it was supposed to show the time from a second it started showing time from 5 minutes but it was supposed to show a second ago.
here is my code:
<Moment fromNow ago>{new Date(e.created_at)}</Moment> &nbsp; ago
can anyone suggest what I am doing wrong or is it this libraries problem?

@tadeo
Copy link
Contributor

tadeo commented Jun 14, 2018

I think it could be due the default interval is greater than a second. Did you try to set it to 1000ms?

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