Ask Your Question
6

ask.sagemath.org Y2k20 bug

asked 2020-01-07 16:16:27 +0100

Iguananaut gravatar image

It seems ask.sagemath.org (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

Comments

This could be reported to one or both of:

slelievre gravatar imageslelievre ( 2020-01-17 01:48:51 +0100 )edit
slelievre gravatar imageslelievre ( 2020-07-28 21:29:08 +0100 )edit

3 Answers

Sort by ยป oldest newest most voted
3

answered 2020-01-08 11:34:13 +0100

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

Comments

1

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

Iguananaut gravatar imageIguananaut ( 2020-01-08 16:16:36 +0100 )edit
2

answered 2020-01-08 09:35:35 +0100

tmonteil gravatar image

updated 2020-01-08 09:36:14 +0100

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
0

answered 2020-09-13 04:43:57 +0100

slelievre gravatar image

updated 2020-09-13 04:51:33 +0100

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

Stats

Asked: 2020-01-07 16:16:27 +0100

Seen: 4,545 times

Last updated: Sep 13 '20