Skip to content

Commit eb40411

Browse files
author
Johannes Gijsbers
committed
Invert date substraction to put activity in the past again [SF#842027].
1 parent c328b9a commit eb40411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ def reldate(self, pretty=1):
10531053
return ''
10541054

10551055
# figure the interval
1056-
interval = date.Date('.') - self._value
1056+
interval = self._value - date.Date('.')
10571057
if pretty:
10581058
return interval.pretty()
10591059
return str(interval)

0 commit comments

Comments
 (0)