* src/DateDisplay.py (_display_gregorian): Prepend month and

day with zeros if needed for the ISO format.


svn: r3619
This commit is contained in:
Alex Roitman 2004-10-11 20:24:33 +00:00
parent 8569738aa3
commit d0a04be93f
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2004-10-11 Alex Roitman <shura@alex.neuro.umn.edu>
* src/DateDisplay.py (_display_gregorian): Prepend month and
day with zeros if needed for the ISO format.
2004-10-10 Don Allingham <dallingham@users.sourceforge.net>
* src/DateParser.py: try to detect illegal numerical dates
* src/GrampsInMemDB.py: handle null handle

View File

@ -207,9 +207,9 @@ class DateDisplay:
if date_val[1] == 0:
value = year
else:
value = "%s-%d" % (year,date_val[1])
value = "%s-%02d" % (year,date_val[1])
else:
value = "%s-%d-%d" % (year,date_val[1],date_val[0])
value = "%s-%02d-%02d" % (year,date_val[1],date_val[0])
elif self.format == 1:
if date_val[0] == 0 and date_val[1] == 0:
value = str(date_val[2])