Bug in Opera 9.21 8776 - new Date(2001, 0, BIG)

D

Dr J R Stockton

Try
for (j=0; j<10; j++)
document.writeln(J, " ", new Date(2001, 0, 13600+J), "<br>")

in Opera.

I found this with code covering in effect from j=0 and going higher.

After the year 2037, one error of one hour occurs near most Summer Time
transitions. Foreigners may well find differences.

Bug report sent.
 
D

Dr J R Stockton

In comp.lang.javascript message <[email protected]
rlyn.invalid>, Tue, 12 Jun 2007 23:34:59, Dr J R Stockton
<[email protected]> posted.

Update :

The bug is not dependent on D being large :-

function X99() { var YY, Y, M, D, DOb
document.writeln("Opera 9.21 shows me errors near most",
" Summer Time steps outside 1970-2037;\nIE & FF are OK.")
for (YY=1970 ; YY<2050 ; YY+=68) for (Y=YY-4 ; Y<YY+5 ; Y++)
for (M=0 ; M<12 ; M++)
for (J=0 ; J<32 ; J++) {
DOb = new Date(Y, M, J)
if (DOb.getHours()!=0) document.writeln(LZZ(J), " ", DOb) } }
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top