From 7ef450515c2b749c203d3494cb88f6cf7f89c1c3 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Thu, 9 Apr 2015 22:05:36 -0700 Subject: [PATCH] 8477: date format month/year is not well reported at editing time --- gramps/gen/datehandler/_dateparser.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gramps/gen/datehandler/_dateparser.py b/gramps/gen/datehandler/_dateparser.py index 1ffff0f37..cd93b4935 100644 --- a/gramps/gen/datehandler/_dateparser.py +++ b/gramps/gen/datehandler/_dateparser.py @@ -629,8 +629,12 @@ class DateParser(object): else: y = self._get_int(groups[4]) if self.dmy: - m = self._get_int(groups[3]) - d = self._get_int(groups[1]) + if groups[3] is None: + m = self._get_int(groups[1]) + d = 0 + else: + m = self._get_int(groups[3]) + d = self._get_int(groups[1]) else: m = self._get_int(groups[1]) d = self._get_int(groups[3])