Ask Your Question
6 Y2k20 bug

asked 2020-01-07 09:16:27 -0500

Iguananaut gravatar image

It seems (or rather Askbot) has fallen prey to the Y2k20 bug, just in its date format. Just look at how the dates of some posts or comments are formatted: Previously they would be displayed like "Dec 31 '19" and now they display "Jan 7 '0" with the year formatted as "'0" instead of "'20".

I don't know if it's worth doing anything about; I just found it amusing.

edit retag flag offensive close merge delete


This could be reported to one or both of:

slelievre gravatar imageslelievre ( 2020-01-16 18:48:51 -0500 )edit
slelievre gravatar imageslelievre ( 2020-07-28 14:29:08 -0500 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2020-01-08 04:34:13 -0500

rburing gravatar image

This is due to a hilarious modification (in AskBot), made in 2012, to the jQuery timeago plugin:

return month_date + ' ' + "'" + date.getYear() % 20;

Yes, I'm sure that produced the right result in 2012. The same bug is still present in AskBot today.

An easy fix is to replace 20 by 100.

edit flag offensive delete link more



I'm impressed that you bothered to track it down :)

Iguananaut gravatar imageIguananaut ( 2020-01-08 09:16:36 -0500 )edit

answered 2020-01-08 02:35:35 -0500

tmonteil gravatar image

updated 2020-01-08 02:36:14 -0500

I do not know if this is fixed in recent versions of askbot. The issue is that migrating askbot is always a pain, since Django migration scripts (formerly "south") lead to errors that have to be fixed by hand, because the db of asksage was tweaked at install time by the askbot developer a very long time ago, so we try not do to it often :)

Note that it is only about js formatting : if you pass the mouse over the date without clicking, you see the whole date.

edit flag offensive delete link more

answered 2020-09-12 21:43:57 -0500

slelievre gravatar image

updated 2020-09-12 21:51:33 -0500

The fix has been merged in Askbot.

Ask LibreOffice also suffered from the bug. They deployed a version of Askbot with the fix.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-01-07 09:16:27 -0500

Seen: 309 times

Last updated: Sep 12