hustcc / timeago.js

:clock8: :hourglass: timeago.js is a tiny(2.0 kb) library used to format date with `*** time ago` statement.
https://timeago.org
MIT License
5.29k stars 411 forks source link

Time issue after appending row #247

Open fawwadshafi opened 2 years ago

fawwadshafi commented 2 years ago

Hello,

I'm having an issue after the new row appending using the Ajax record. when the row is appended and I call the "time ago" it suddenly changes the time to "2 minutes ago" instead of "0 seconds ago". I'm testing on Demo server.

The same thing is working fine when I'm using on Localhost (xampp)

fawwadshafi commented 2 years ago

This is my code

$(comment_HTML).insertAfter(parent); // Load Timeago $("body time.timeago").timeago();