View Full Version : The First Y2K bug that hit me
meikel
01-01-1999, 11:23 AM
Hmm, it seems that IE 4.72.3110.1 has a Year2000 bug that prevents me from using these forums http://www.aota.net/ubb/frown.gif
In the morning, I found that the forums do not show the typical indicators for new messages. This is understandable, as the cookie expired today (1.jan.1999). So I tried to extablish a new cookie for this year using "prefs".
This just does not work, as the script sets the cookie to expire 100 (not 2000).
It seems that the JavaScript getYear method returns "99" on IE4 and not 1999. So adding a value of one just is not the way to go.
I'll walk around and see if an IE update is floating around MS which fixes this (or is this spec???)
Greetings from someone missing a great feature
Meikel Weber
http://www.meikel.com
meikel
01-01-1999, 11:25 AM
I found that this JavaScript behaviour is by design. Netscape reference tells that getDate returns a 2-digit year for values between 1900 and 1999 and four digit years in all other cases.
So the script code needs some updating.
Unfortunately it's not MS to blame this time, but the UBB makers.
Ditto on this end Meikel...
I'm on my way over to the UBB Homepage now to see if they have addressed this yet or not....
Let us know if you find something before I do.
(Terra's on stats STILL so he's not much help in this area yet LOL)
Deb
[This message has been edited by Deb (edited 01-01-99).]
meikel
01-01-1999, 11:44 AM
I suggest replacing the following line of JavaScript code
expireDate.setYear(expireDate.getYear()+1);
with this small snippet
if (expireDate.getYear() < 100) {
expireDate.setYear (expireDate.getYear() + 1900 + 1);
} else {
expireDate.setYear(expireDate.getYear()+1);
}
"setYear" accepts 4-digit values in any case.
(this code should be found somewhere in the "setprefs" area)
That should work much better
Meikel
[This message has been edited by meikel (edited 01-01-99).]
[This message has been edited by meikel (edited 01-01-99).]
Ah ha... you found their forums before me http://www.aota.net/ubb/smile.gif
I'm pulling Terra over now to look at your suggestion..
Thanks Meikel! We have quite a few UBB users on this server.. it's nice to have someone helping to fix this!!
Deb
Terra
01-01-1999, 11:53 AM
I have implemented the patch...
This is a test only...
--
Terra
Terra
01-01-1999, 11:55 AM
Wooohoooo
Thanks Meikel... It b0rked my cookie though - but someone whom hasn't visited the CNC forums shouldn't see a problem...
I love the community support -- makes my life simpler at times... http://www.aota.net/ubb/wink.gif
--
Terra
sysAdmin
FutureQuest
PS: Please visit this community member's web site, we like to support those that help support us:
www.meikel.com (http://www.meikel.com)
www.tickerland.com (http://www.tickerland.com)
[This message has been edited by ccTech (edited 01-01-99).]
meikel
01-01-1999, 12:32 PM
Let's see some facts:
First bug report 10:23 AM
Bug fixed 10:53 AM
That makes 30 minutes.
Anybody knows another web-host that can show these numbers ?
Again, I love FutureQuest http://www.aota.net/ubb/smile.gif
Greetings from someone who knows how many people it takes to change a light-bulb at FQ
[nbsp][nbsp]Meikel Weber
First good laugh of 1999 !!!!!!!!!!
Thanks Meikel!!!!
You've given us a great smile today http://www.aota.net/ubb/smile.gif
Deb
Thanks.. meikel
Thanks.. Deb
Thanks.. Terra
First bug report 10:23 AM
Bug fixed 10:53 AM
That makes 30 minutes.
miekel: Uh.. how about this?...
I did not know there was a problem. The first I knew of it, was in message from Deb telling of you detecting the problem and finding a fix and that FutureQuest had made the adjustment to my Ubb.
So... before I knew there was a problem.. the problem was fixed.
What can I say?
If there is a problem standing in the forest and there is nobody around to.. Oh never mind.
----------------------------
Paul
"A fairly new but VERY loyal customer of FutureQuest"
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.