Code

Invert date substraction to put activity in the past again (sf bug 842027).
authorjlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 21 Nov 2003 21:31:57 +0000 (21:31 +0000)
committerjlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 21 Nov 2003 21:31:57 +0000 (21:31 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2001 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/templating.py

index 1c461bf631ac81e906c0ffeca6e8b4b31deb4cdf..537a1cbf1e3aa251ac7db48ad8102df63beda2df 100644 (file)
@@ -1053,7 +1053,7 @@ class DateHTMLProperty(HTMLProperty):
             return ''
 
         # figure the interval
-        interval = date.Date('.') - self._value
+        interval = self._value - date.Date('.')
         if pretty:
             return interval.pretty()
         return str(interval)