5293: age='unknown' for after/after and before/before dates (age calculation)
svn: r18298
This commit is contained in:
@@ -336,7 +336,7 @@ class Span(object):
|
||||
#v = self.date1.sortval - self.date2.sortval
|
||||
#self.sort = (v, -Span.BEFORE)
|
||||
#self.minmax = (v, v + Span.BEFORE)
|
||||
self.repr = _("more than about") + " " + self._format(self._diff(self.date1, self.date2))
|
||||
self.repr = self._format((-1, -1 , -1))
|
||||
elif self.date2.get_modifier() == Date.MOD_AFTER:
|
||||
#v = self.date1.sortval - self.date2.sortval
|
||||
#self.sort = (v, -Span.AFTER)
|
||||
@@ -369,7 +369,7 @@ class Span(object):
|
||||
#v = self.date1.sortval - self.date2.sortval
|
||||
#self.sort = (v, Span.AFTER)
|
||||
#self.minmax = (v, v + Span.AFTER)
|
||||
self.repr = _("more than") + " " + self._format(self._diff(self.date1, self.date2))
|
||||
self.repr = self._format((-1, -1 , -1))
|
||||
elif self.date2.get_modifier() == Date.MOD_ABOUT:
|
||||
#v = self.date1.sortval - self.date2.sortval
|
||||
#self.sort = (v, -Span.ABOUT)
|
||||
|
Reference in New Issue
Block a user