Hello Jack,
OK for the Locale
. If you do not have trouble with other months like "novembre", then you are right, it may be due to french accent.
But it may also be some other nasty issue with Java date formats: since you're using "MMMM" for the month in your date format, it means that the month name must appear in complete form, not truncated, like "décembre" instead of "déc". Here is a quick example:
Code: Select all
Date date = new GregorianCalendar(2014, 11, 9).getTime(); // 9 dec. 2014
System.out.println(new SimpleDateFormat("dd MMMM. yyyy", Locale.FRENCH).format(date));
System.out.println(new SimpleDateFormat("dd MMM. yyyy", Locale.FRENCH).format(date));
System.out.println(new SimpleDateFormat("dd MM. yyyy", Locale.FRENCH).format(date));
will produce:
Code: Select all
09 décembre. 2014
09 déc.. 2014
09 12. 2014
So you may want to try a date format like "dd MMM yyyy" instead of "dd MMM
M. yyyy", without the trailing dot (.) and the fourth "M". Indeed, when the month name is truncated, Java already adds a trailing dot like in "déc.".
Tip: you can test all formats/logs combinations in real-time using the "Parser Test" panel in "Tools" > "Options" > "Parsers" > double-click on your parser.
Please let us know if you still have issues using this parser.