rmm5t/jquery-timeago — pull request #58 by xiam (2012-03-03 17:00:20+00:00)
Title: Adding $.timeago.settings.offset, useful when dealing with timezones.

My dates are stored in UTC, I don't want UTC time to be used when computing distance() because it will show a wrong time.

$(document).ready(
function() {
var now = $.timeago.parse('{date('Y-m-d H:i:s')}'); // standard PHP date, UTC time.
var offset = now.getTime() - new Date().getTime(); // time difference between server and client.
$.timeago.settings.offset = offset;
}
);