From e71d2d21c32dae88820f765b45d14fbd0b9fb99a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Fri, 26 Mar 2010 15:45:31 +0000 Subject: [PATCH] convert localized short months to DateObject svn: r14930 --- src/DateHandler/_Date_fr.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/DateHandler/_Date_fr.py b/src/DateHandler/_Date_fr.py index 21eb6464d..93861a7f6 100644 --- a/src/DateHandler/_Date_fr.py +++ b/src/DateHandler/_Date_fr.py @@ -58,6 +58,16 @@ class DateParserFR(DateParser): month_to_int = DateParser.month_to_int + # Short months not the same as long months + + month_to_int[u"janv"] = 1 + month_to_int[u"févr"] = 2 + month_to_int[u"juil"] = 7 + month_to_int[u"sept"] = 9 + month_to_int[u"oct"] = 10 + month_to_int[u"nov"] = 11 + month_to_int[u"déc"] = 12 + # Add common value month_to_int[u"bluviose"] = 5