Ask Your Question
4

ask.sagemath.org Y2k20 bug

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

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-16 18:48:51 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

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

Comments

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

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

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

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 09:16:27 -0500

Seen: 180 times

Last updated: Jan 16