So apparently in Javascript 1.2 and earlier getYear() was sensible enough to give the year as a 2 or 4-digit number, but then Mozilla switched to the current year minus 1900, therefore *introducing* a Y2K bug instead of fixing it

I need to check if it worked around IE5.5 or IE6, which is most likely what I was using back then

So there you go I debugged a 15-year-old bug I never bothered to figure out until now, thanks for reading

Sign in to participate in the conversation
calc news

This instance is mainly for the graphic calculator community, but is open to programmers, artists and related fields.

This is an instance for those who used to put games and hack on their TI-83+ instead of actually doing their math homework on it back in high school. Those who picked up programming because it's fun. Those who will put their favourite programming languages to creative uses and maybe make up new ones. You are encouraged to show your projects off on this instance and show other users of the fediverse what you're able of.

Mostly everything is allowed, but just keep it friendly, okay? No abuse, use common sense. We're just a bunch of nerds here. All hail the mighty walrus.

If you don't have enough of 500 characters, feel free to visit our sister site at CodeWalrus and join the forums and the Discord server.