ternyata ada buck pada penanggalan di javascript
engine netscape-4.7
kalau saya buat html dibawah ini, dan dijalankan akan
muncul tahun 100, bukan 2000.
coba aja deh :
<html>
<head>
<title>JavaScript Y2K Bug</title>
</head>
<body>
Communicator 4.7<br>
JavaScript Y2K bug<br><br>
<PRE>
<script language="JavaScript">
// initialize date object to the New Year
var mydate=new Date("January 1, 2000 12:00:00");
// write the whole date out
document.writeln("mydate = "+mydate);
//use getYear() to strip off the year of mydate
var year=mydate.getYear();
// write the year
document.writeln("mydate.getYear() = "+year);
</script>
</PRE>
</body>
</html>
ada yang udah tahu solusinya ?
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
http://www.indolinux.com - Nikmati Layanan Personal INDOLINUX ::
http://techscape.net/ - Webhosting: Dual T3 on Dual Pentium III 450Mhz
Only US$1.95/month -> CGI SSL 5MB Unlimited Traffic & Mail FP2000
-------------------------------------------------------------------
untuk berhenti kirim email ke [EMAIL PROTECTED]
untuk melihat peraturan kirim email ke [EMAIL PROTECTED]
arsip berada di http://www.mail-archive.com/[email protected]