Issue 3501: Page has wrong date (108 instead of 2008)
http://code.google.com/p/chromium/issues/detail?id=3501
Comment #1 by bksening:
Hey.... its a Y2K problem mixed with the JavaScript Date.getYear() problem!
This is the reduction from the webpage's source:
calendar = new Date();
year = calendar.getYear();
if (year< 100) year = 1900 + year;
The problem is with the inconsistency with Date.getYear() between different
browsers.
For this year, Date.getYear()
returns 108: for Safari, Chrome, and Firefox (which are FAIL for this
page)
returns 2008: for Opera and IE (which are OK for this page)
Then, "if (year< 100)" is the wrong check and fails to apply the 1900 year
correction
properly. This JavaScript needs to be updated by the webpage author to
display the year
correctly.
And secondly, getYear() is deprecated now. It should be Date.getFullYear()
which would
work properly for all browsers.
[Invalid] Not a Chrome bug; unless V8 will change its implementation of
Date.getYear()?
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Chromium-bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---