diff roundup/cgi/templating.py @ 1933:eb7aa7546e13 maint-0.6

Backport from HEAD: invert date substraction to put activity in the past again [SF#842027].
author Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
date Fri, 21 Nov 2003 21:33:00 +0000
parents fc524c1caeb0
children 63d588757872
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Fri Nov 14 06:14:48 2003 +0000
+++ b/roundup/cgi/templating.py	Fri Nov 21 21:33:00 2003 +0000
@@ -1051,7 +1051,7 @@
             return ''
 
         # figure the interval
-        interval = date.Date('.') - self._value
+        interval = self._value - date.Date('.')
         if pretty:
             return interval.pretty()
         return str(interval)

Roundup Issue Tracker: http://roundup-tracker.org/