Closed Bug 156143 Opened 22 years ago Closed 22 years ago

toLocaleString method(javascript) doesn't work correctly

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

()

VERIFIED DUPLICATE of bug 153586

People

(Reporter: ubbs, Assigned: rogerl)

Details

Why the dateObj.toLocaleString(), dateObj.toLocaleDateString(), dateObj.toLocaleTimeString() doesn't return the values that based on the localization settings of the user's operating system? <script> var d = new Date(1023877669000); document.write(d.toLocaleString()); </script> Always is "Wednesday, June 12, 2002 18:27:49", no matter how I change the local setting of the OS. But Opera 6 can get the correct date format when you change the local setting, not always the same format. I don't know whether it is a bug. but Opera can do, why Mozilla can not??? I am looking forword to fixing it.
This is a duplicate of bug 153586, "Date.prototype.toLocaleString ( ) not implemented correctly" *** This bug has been marked as a duplicate of 153586 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Marking Verified. ubbs@263.sina.com: thank you for this report. You have been cc'ed on the other bug so you can follow its progress -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.