react-moment icon indicating copy to clipboard operation
react-moment copied to clipboard

current time starts from 5 minutes

Open ashfaqrafi opened this issue 8 years ago • 1 comments

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?

ashfaqrafi avatar Jan 07 '18 11:01 ashfaqrafi

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

tadeo avatar Jun 14 '18 14:06 tadeo