First time here? Check out the FAQ!

Ask Your Question
6

ask.sagemath.org Y2k20 bug

asked 5 years ago

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.

Preview: (hide)

Comments

This could be reported to one or both of:

slelievre gravatar imageslelievre ( 5 years ago )
slelievre gravatar imageslelievre ( 4 years ago )

3 Answers

Sort by » oldest newest most voted
3

answered 5 years ago

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.

Preview: (hide)
link

Comments

1

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

Iguananaut gravatar imageIguananaut ( 5 years ago )
2

answered 5 years ago

tmonteil gravatar image

updated 5 years ago

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.

Preview: (hide)
link
0

answered 4 years ago

slelievre gravatar image

updated 4 years ago

The fix has been merged in Askbot.

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

Preview: (hide)
link

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: 5 years ago

Seen: 4,642 times

Last updated: Sep 13 '20