Skip to content

Commit 1cb5c2b

Browse files
author
Johannes Gijsbers
committed
Backport from HEAD:
invert date substraction to put activity in the past again [SF#842027].
1 parent ee1052c commit 1cb5c2b

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
@@ -1051,7 +1051,7 @@ def reldate(self, pretty=1):
10511051
return ''
10521052

10531053
# figure the interval
1054-
interval = date.Date('.') - self._value
1054+
interval = self._value - date.Date('.')
10551055
if pretty:
10561056
return interval.pretty()
10571057
return str(interval)

0 commit comments

Comments
 (0)