pingjiang / datejs

Automatically exported from code.google.com/p/datejs
Other
0 stars 0 forks source link

CultureInfo: Month Names With Accents Cannot Be Parsed #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a translation which has month names with accents, e.g. de-DE or fr-
FR
2. Try to parse a month name with accents like "März" or "Février"
3. The parse function returns an error.

What is the expected output? What do you see instead?
The expected date would be correct month.

What version of the product are you using? On what operating system?
Latest downloadable version on WXP SP3.

Please provide any additional information below.

---

Original issue reported on code.google.com by dietmar....@hisec.at on 15 May 2009 at 7:59

GoogleCodeExporter commented 9 years ago
i'm seeing this with french, specifically with the august month (août in 
french).   The JSON format looks like this: 

"2011-08-01"

Here's how I parse it :

var date = Date.parse(event.Date);
var strDate = date.toString('dddd, MMMM d');

For all the other months and if using english, i get the proper parsed date:

samedi, juillet 30, 20h00  or 
Saturday, July 30, 8:00 pm

When the month with the accent comes around, I get this:
samedi, janvier 8, 22h30
Monday, August 1, 10:30 pm

Original comment by justin.m...@gmail.com on 17 Jun 2011 at 7:29

GoogleCodeExporter commented 9 years ago
Fixed in the current build on my fork: https://github.com/abritinthebay/datejs/

Original comment by darkcr...@gmail.com on 21 Dec 2013 at 6:22