Closed Bug 867496 Opened 11 years ago Closed 7 years ago

toLocaleFormat "fake year" hack results in nonsense results

Categories

(Core :: JavaScript Engine, defect)

x86_64
Windows 7
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 818634

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

Internally, |toLocaleFormat| turns the year 123 into 9923 before handing it to the platform |strftime| and then turns all occurrences back.  This hack is web-visible:

> new Date(123, 3, 4).toLocaleFormat("9923")
123
Assignee: general → nobody
toLocaleFormat was removed in bug 818634.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.