Closed
Bug 123433
Opened 23 years ago
Closed 20 years ago
internet.com - Y2K failure in date script due to getYear()
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tech Evangelism Graveyard
English US
Tracking
(Not tracked)
VERIFIED
FIXED
Nov
People
(Reporter: Tony.Tovar, Unassigned)
References
()
Details
Attachments
(1 file)
183 bytes,
text/html
|
Details |
This web-site includes a javascript to add the current date to each page. It works fine in IE 5.5 but reports "Feb. 4, 102" in Mozilla. The code reads: <script LANGUAGE="JavaScript" src =" /java/date.js"> which I assume is referring to the file at: http://cws.internet.com/java/date.js (This might be caused by my AdSubtract proxy but I'm pretty sure I've bypassed it while testing this.)
*** This bug has been marked as a duplicate of 65681 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 2•23 years ago
|
||
Verified Duplicate. Here is the relevant portion of the other bug:
> The use of Date.getYear() was deprecated in favour of .getFullYear()
> (which returns the full four-digit value for the year). See bug 22964
> for further information on this -
Status: RESOLVED → VERIFIED
Comment 3•23 years ago
|
||
And to be complete, here is the offending code from view-source:http://cws.internet.com/java/date.js var months=new Array(13); months[1]="January"; months[2]="February"; months[3]="March"; months[4]="April"; months[5]="May"; months[6]="June"; months[7]="July"; months[8]="August"; months[9]="September"; months[10]="October"; months[11]="November"; months[12]="December"; var time=new Date(); var lmonth=months[time.getMonth() + 1]; var date=time.getDate(); var year=time.getYear(); if (year < 100) { year = "19" + time.getYear() } else if (year == 100) { year = "2000" } else { year=time.getYear() } document.write(lmonth + " " + date + ", " + year)
Comment 4•23 years ago
|
||
Better: reopen this for Evangelism
Status: VERIFIED → UNCONFIRMED
Resolution: DUPLICATE → ---
Comment 5•23 years ago
|
||
Reassigning to Tech Evangelism; the site should use getFullYear(), not the deprecated getYear() function
Assignee: rogerl → doronr
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → US General
Ever confirmed: true
Product: Browser → Tech Evangelism
QA Contact: pschwartau → zach
Version: other → unspecified
Updated•23 years ago
|
Comment 6•22 years ago
|
||
*** Bug 145906 has been marked as a duplicate of this bug. ***
Contact address is cwsapps@internet.com
Severity: normal → trivial
OS: Windows NT → All
Hardware: PC → All
Summary: internet.com - date script reports "102" as year → internet.com - Y2K failure in date script due to getYear()
Comment 8•21 years ago
|
||
tech evang june 2003 reorg
Assignee: doron → english-us
QA Contact: zach → english-us
Trouble is, getYear() is still supported on other browsers. People viewing the same site in IE and Mozilla will have the opinion that Mozilla "is ****" because it shows 103 (for 2003) and IE shows 2003. There's no way you can "Tech Evangalise" to all those web developers out there, so how about putting this bug in the "to be fixed" queue again. Cheers Andrew
Comment 10•21 years ago
|
||
contact info cwsapps@internet.com
Status: NEW → ASSIGNED
Target Milestone: --- → Nov
Comment 11•21 years ago
|
||
This test case returns 103 as current year. If "deprecated" means "possibly not working" this bug should be closed as WONTFIX.
Comment 12•21 years ago
|
||
Andrew: Discussion about changing getYear() in Mozilla belongs in bug 22964, not here. Alvaro: This is a tech evang bug. Tech evang bugs are usually left open until the site (in this case, http://cws.internet.com/reviews/plugins-shock.html) fixes itself.
Comment 13•20 years ago
|
||
The date script no longer exists, it just forwards back to the homepage and there is no date to be found on any page marking fixed
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 20 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•