From 8fb0e3dcb44ab23db28e52aa205b36c586e776f0 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 20 Jan 2003 13:28:33 +0000 Subject: [PATCH] Fixed ISO Date format svn: r1264 --- gramps2/src/Date.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps2/src/Date.py b/gramps2/src/Date.py index cb9fbdc91..7a7625969 100644 --- a/gramps2/src/Date.py +++ b/gramps2/src/Date.py @@ -144,7 +144,7 @@ class Date: def getMonth(self): if self.start.month == UNDEF: return UNDEF - return self.start.month+1 + return self.start.month def getMonthValid(self): return self.start.month != UNDEF @@ -346,7 +346,7 @@ class SingleDate: else: m = "-??" else: - m = "-%02d" % (self.month+1) + m = "-%02d" % (self.month) if self.day == UNDEF: d = '' else: @@ -372,7 +372,7 @@ class SingleDate: vals = string.split(v,'-') self.setYearVal(vals[0]) if len(vals) > 1: - self.setMonthVal(int(vals[1])-1) + self.setMonthVal(int(vals[1])) else: self.month = UNDEF if len(vals) > 2: