From 37e82106dcd8300bcacbedbe3767c3b2c6ecad66 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Sat, 14 Sep 2013 14:23:58 +0000 Subject: [PATCH] 7065: Calendar conversion broken for negative date fixed, repro steps work as expected now date_test still broken due to further blocking issues, see #7045 svn: r23123 --- gramps/gen/lib/date.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/lib/date.py b/gramps/gen/lib/date.py index ff7164c19..f224e896a 100644 --- a/gramps/gen/lib/date.py +++ b/gramps/gen/lib/date.py @@ -1488,7 +1488,7 @@ class Date(object): return self.text def _zero_adjust_ymd(self, y, m, d): - year = max(y, 1) + year = y if y != 0 else 1 month = max(m, 1) day = max(d, 1) return (year, month, day)