Revision history  [back]

Hello, The bug is in the timeago.js file.

The year shall be reset every century not every 20 years.

here is the fix:

$ git diff media/jslib/timeago.js
diff --git a/askbot/media/jslib/timeago.js b/askbot/media/jslib/timeago.js
index 0c20f0242..5f9c8561d 100644
--- a/askbot/media/jslib/timeago.js
+++ b/askbot/media/jslib/timeago.js
@@ -107,7 +107,7 @@
             //how to do this in js???
             return month_date;
         } else {
-            return month_date + ' ' + "'" + date.getYear() % 20;
+            return month_date + ' ' + "'" + date.getYear() % 100;
         }
     } else if (days == 2) {
         return gettext('2 days ago')

I hope it helps