// Safari does this correctly.
if (SAFARI) {
return date.toLocaleDateString();
}
// Chrome, however (at least on OS X) seems to think that it's always in the US,
// so we try and do something reasonable.
// A bunch of other code to try and build my own date strings goes here...
You are not logged in, either login or create an account to post comments
Thursday, October 04, 2012Mozilla's docs explains that you can't really trust toLocaleDateString().
posted by Foci for Analysis at 9:58 AM on October 4, 2012 [1 favorite]