From 0be50cf9f93a6371455f82cc4421b0e820ced390 Mon Sep 17 00:00:00 2001 From: Richard Schwab Date: Fri, 12 Jun 2020 11:30:09 +0200 Subject: [PATCH] Fix relative timestamps not properly displaying dates in the future. In 184247c4abe777399a98f2711f47b2d6e1d5d57c (#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". --- js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 719fab1..063b261 100644 --- a/js/main.js +++ b/js/main.js @@ -8,6 +8,8 @@ function timeago() } (function(){ + jQuery.timeago.settings.allowFuture = true; + timeago(); $("body").on("click", ".navbar-toggle", function(){ @@ -27,4 +29,4 @@ function timeago() }); }); })(); - \ No newline at end of file +