Skip to content

Commit

Permalink
Fix relative timestamps not properly displaying dates in the future.
Browse files Browse the repository at this point in the history
In 184247c (#99) jquery.timeago was updated from version 1.6.1 to 1.6.7.
This changed the default value for allowFuture, which is responsible for restricting whether a date in the future would be shown e.g. as "3 days ago" or "3 days from now".
  • Loading branch information
Nothing4You committed Jun 12, 2020
1 parent 570895c commit 0be50cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ function timeago()
}

(function(){
jQuery.timeago.settings.allowFuture = true;

timeago();

$("body").on("click", ".navbar-toggle", function(){
Expand All @@ -27,4 +29,4 @@ function timeago()
});
});
})();


0 comments on commit 0be50cf

Please sign in to comment.