By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,652 Members | 1,422 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,652 IT Pros & Developers. It's quick & easy.

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

P: n/a

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.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6.
Web <URL:http://www.merlyn.demon.co.uk/- w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/- see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.
Jun 12 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In comp.lang.javascript message <Pw**************@invalid.uk.co.demon.me
rlyn.invalid>, Tue, 12 Jun 2007 23:34:59, Dr J R Stockton
<jr*@merlyn.demon.co.ukposted.

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) } }
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6.
Web <URL:http://www.merlyn.demon.co.uk/- w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/- see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.
Jun 13 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.