diff --git a/rhodecode/public/js/src/plugins/jquery.timeago-extension.js b/rhodecode/public/js/src/plugins/jquery.timeago-extension.js index 64d4a271..89b3d60c 100644 --- a/rhodecode/public/js/src/plugins/jquery.timeago-extension.js +++ b/rhodecode/public/js/src/plugins/jquery.timeago-extension.js @@ -3,13 +3,8 @@ var AgeModule = (function () { return { age: function(prevdate, now, show_short_version, show_suffix, short_format) { - var prevdate = moment(prevdate); - var now = now || moment().utc(); - - if (prevdate.isUTC() || now.isUTC()) { - prevdate = prevdate.clone().utc(); - now = now.clone().utc(); - } + var prevdate = moment(prevdate).utc(); + var now = now ? moment(now).utc() : moment().utc(); var show_short_version = show_short_version || false; var show_suffix = show_suffix || true;