* src/DateDisplay.py (_display_gregorian): Prepend month and
day with zeros if needed for the ISO format. svn: r3619
This commit is contained in:
parent
8569738aa3
commit
d0a04be93f
@ -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>
|
2004-10-10 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/DateParser.py: try to detect illegal numerical dates
|
* src/DateParser.py: try to detect illegal numerical dates
|
||||||
* src/GrampsInMemDB.py: handle null handle
|
* src/GrampsInMemDB.py: handle null handle
|
||||||
|
@ -207,9 +207,9 @@ class DateDisplay:
|
|||||||
if date_val[1] == 0:
|
if date_val[1] == 0:
|
||||||
value = year
|
value = year
|
||||||
else:
|
else:
|
||||||
value = "%s-%d" % (year,date_val[1])
|
value = "%s-%02d" % (year,date_val[1])
|
||||||
else:
|
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:
|
elif self.format == 1:
|
||||||
if date_val[0] == 0 and date_val[1] == 0:
|
if date_val[0] == 0 and date_val[1] == 0:
|
||||||
value = str(date_val[2])
|
value = str(date_val[2])
|
||||||
|
Loading…
Reference in New Issue
Block a user