Closed
Bug 128125
Opened 23 years ago
Closed 12 years ago
aol.com - browsertest doesn't understand date correctly
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tech Evangelism Graveyard
English US
Tracking
(Not tracked)
RESOLVED
INVALID
Future
People
(Reporter: timeless, Unassigned)
References
()
Details
(Whiteboard: [author])
The YearFromToday row results in Thu, 27 Jul 2000 05:00:00 UTC give or take .. [ie, nc4, moz, winEmbed].
It doesn't matter whether your clock is set correctly (my laptop has a y2002 problem).
Comment 1•23 years ago
|
||
Here's the problem: the variable |now| in their script is hard-coded:
var now = new Date(99,6,28)
In my timezone this is:
Wed Jul 28 1999 00:00:00 GMT-0700 (Pacific Daylight Time)
The results in their YearFromToday row read like this on my box:
DATE METHOD
YearFromToday now.getTime() + (24*60*60*1000*365)
RESULT
Thu, 27 Jul 2000 07:00:00 GMT
So - this is basically correct, given the hard-coded value for |now|.
It's just one day short. This is because 2000 happened to be a leap year,
so the hard-coded value 24*60*60*1000*365 is one day too little ...
I don't know why they hard-coded |now|; most testsuites do this:
var now = new Date();
Updated•23 years ago
|
Comment 5•22 years ago
|
||
oops
Assignee: bc → english-us
Component: Authors → English US
QA Contact: mgalli → english-us
Comment 7•15 years ago
|
||
The bug is still here.
Comment 8•12 years ago
|
||
While the bug is indeed still there, it's just an issue in some test suite which looks limited and outdated anyway. I don't think we should spend time on finding a contact and passing on a fix at this point, and hope noone will disagree with me closing this bug.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Updated•10 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
•