As @kcristella said, you will need to make sure that your local timezone and your server’s timezone match because
jquery-timeago runs on the client and thus uses the local timezone, but processes the date that the server returned, which matches the server’s timezone.
However, this would not work for visitors with different timezones, so you will want to calculate the
x time ago part on the server itself and not in the browser. Another option would be converting the time to the visitor’s timezone and then
jquery-timeago will work correctly.