Closed Bug 528520 Opened 15 years ago Closed 7 years ago

Date.toLocaleFormat doesn't accept %T on Windows

Categories

(Core :: JavaScript Engine, defect)

All
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 818634

People

(Reporter: mstange, Unassigned)

References

()

Details

This is what caused bug 527747.

When you use %T in toLocaleFormat on Windows, it discards the format completely and uses the standard format, so that you get something like this:
Fri Nov 13 2009 18:10:14 GMT+0100

When I run the testcase (see URL) on Mac, I get 18:10:14 instead, which is correct.
Unfortunately, toLocaleFormat just calls the system strftime, so platform compatibility isn't available. It would be better if we could have a cross platform implementation instead.
Assignee: general → nobody
toLocaleFormat was removed in bug 818634.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.