Closed
Bug 288259
Opened 19 years ago
Closed 19 years ago
Bad display of time/date stamp in Firefox of the page http://www.xs4all.nl/~sjeef/Nederlands/recepten.html , while in IE it is correct displayed.
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: sjeef, Assigned: bugzilla)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl-NL; rv:1.7.6) Gecko/20050318 Firefox/1.0.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl-NL; rv:1.7.6) Gecko/20050318 Firefox/1.0.2 <script type="text/javascript" language="JavaScript"> //<![CDATA[ <!--// // Dagen var dayNames = new Array("Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag"); // Maanden var monthNames = new Array("januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"); today = new Date() lastmod = new Date(document.lastModified) diffdays = Math.ceil( (today.getTime()- lastmod.getTime())/(24*60*60*1000) ) var then = new Date(document.lastModified); document.writeln(dayNames[then.getDay()] + " " + then.getDate() + " " + monthNames[then.getMonth()] + " " + then.getYear() + " " + then.getHours() + ":" + then.getMinutes()) // --> //]]> </script> This script delivers in Firefox 1.0.2: Voor het laatst bijgewerkt op: Maandag 28 maart 105 18:40 But in Internet Explorer: Voor het laatst bijgewerkt op: Maandag 28 maart 2005 18:40 What do I have to do to get the same result in Firefox? Reproducible: Always
Updated•19 years ago
|
Assignee: general → firefox
Component: Bugzilla-General → General
Product: Bugzilla → Firefox
QA Contact: default-qa → general
That's actually the correcct behaviour. You probably want to use getFullYear(), which gives the same result in Mozilla/FireFox and Internet Explorer. *** This bug has been marked as a duplicate of 22964 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•