rmm5t / jquery-timeago

:clock8: The original jQuery plugin that makes it easy to support automatically updating fuzzy timestamps (e.g. "4 minutes ago").
http://timeago.yarp.com
MIT License
3.82k stars 710 forks source link

Timeago shows 2 hours ago eventhough the time is sooner #351

Closed alvaromrb closed 5 years ago

alvaromrb commented 5 years ago

Okay, so, when I timeago for example a date that passed 1 second ago or 10 seconds or whatever less than 2 hours ago, it just shows "about 2 hours ago"

rmm5t commented 5 years ago

Either your server system clock is wrong, your client clock is wrong, or your timestamp formatting is wrong. Likely the latter.

alvaromrb commented 5 years ago

This is my formatting @rmm5t 2019-04-28 15:07:02

rmm5t commented 5 years ago

That's not an ISO 8601 timestamp. It's missing time zone info. And it's missing the T delimiter (though the parser makes that optional).

Please read the docs. http://timeago.yarp.com/