Closed Bug 565454 Opened 16 years ago Closed 16 years ago

Use standard localized date formatter in TP experiment page

Categories

(Mozilla Labs Graveyard :: Test Pilot, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jono, Assigned: raymondlee)

References

Details

(Whiteboard: extension-core, localization, needs-review)

Attachments

(1 file)

In experiment-page.js, in getTestEndingDate, we should really be using a standard localized date formatting function rather than doing our own with arrays of day names and month names.
Priority: -- → P2
Whiteboard: extension-core, localization
Target Milestone: 0.1 → 1.0
Assignee: jdicarlo → raymond
Do you mean you want to replace the current code with the toLocaleString() method? https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleString Looks like the toLocaleString() returns a date string which doesn't contain the day name.
I think that toLocaleString() would be fine, yes. Not having the day name isn't that big a deal.
Whiteboard: extension-core, localization → extension-core, localization, needs-review
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: Mozilla Labs → Mozilla Labs Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: