From c5ffe377df1a44ee6cc7cbeab5f12bb4c905e413 Mon Sep 17 00:00:00 2001 From: Alen Mujezinovic Date: Wed, 1 Jun 2011 14:27:08 -0700 Subject: [PATCH] European date format parsing. --- pelican/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/utils.py b/pelican/utils.py index e9c1816c..8e48c2e9 100644 --- a/pelican/utils.py +++ b/pelican/utils.py @@ -15,7 +15,7 @@ def get_date(string): If no format matches the given date, raise a ValuEerror """ formats = ['%Y-%m-%d %H:%M', '%Y/%m/%d %H:%M', '%Y-%m-%d', '%Y/%m/%d', - '%d/%m/%Y'] + '%d/%m/%Y', '%d.%m.%Y', '%d.%m.%Y %H:%M'] for date_format in formats: try: return datetime.strptime(string, date_format)