8602: Age in the event family view column is wrong.
This commit is contained in:
parent
dba68c5876
commit
0c3b2d44a8
@ -348,7 +348,10 @@ class Span(object):
|
|||||||
stop2 = Date(*stop2)
|
stop2 = Date(*stop2)
|
||||||
_repr = (trans_text("between") + " " + self._format(self._diff(start1, stop2),dlocale) +
|
_repr = (trans_text("between") + " " + self._format(self._diff(start1, stop2),dlocale) +
|
||||||
" " + trans_text("and") + " " + self._format(self._diff(stop1, start2),dlocale))
|
" " + trans_text("and") + " " + self._format(self._diff(stop1, start2),dlocale))
|
||||||
|
if _repr.find('-') == -1: # we don't have a negative value to return.
|
||||||
return _repr
|
return _repr
|
||||||
|
else:
|
||||||
|
return '(' + _repr.replace('-', '') + ')'
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user