Roundup Tracker - Issues

Issue 842027

classification
Activity is shown as future
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed fixed
:
: jlgijsbers : jkew, jlgijsbers
Priority: normal :

Created on 2003-11-14 10:43 by jkew, last changed 2003-11-21 21:38 by jlgijsbers.

Messages
msg1064 Author: [hidden] (jkew) Date: 2003-11-14 10:43
Activity which under 0.6.2 displayed as "yesterday" / "2 
days ago" under 0.6.3 displays as "tomorrow" / "in 2 
days".

Sorting by activity has the same ordering as before -- 
only the display seems affected.

I suspect Date.__sub__: the sign applied to the resulting 
Interval when two dates are subtracted appears to have 
changed between the releases.

But date.py feels like deep magic to me -- as a 
temporary workaround I inverted the subtraction in 
templating.DateHTMLProperty.reldate, which gets my 
tracker displaying correctly again.
msg1065 Author: [hidden] (jlgijsbers) Date: 2003-11-19 16:44
Logged In: YES 
user_id=469548

Yes, it did change, though I'm not sure why.

From a mail to roundup-devel a while ago:
--
Johannes: The date interval code seems to broken. When
running the demo, the activity column is always in the
future ('in a moment', 'in three hours'). The tests run fine
though.

Richard: That'll be more the fault of the pretty() function.
I suspect that it mis-interprets the sign of the interval
after Anthony's changes which reversed the sign result from
date operations.
--

Assuming there was a good reason for reversing the sign,
your inversion of the subtraction seems like the correct fix
to me.
msg1066 Author: [hidden] (jlgijsbers) Date: 2003-11-21 21:38
Logged In: YES 
user_id=469548

Ah, yes, I've found the thread that explains this:
http://sourceforge.net/mailarchive/forum.php?thread_id=3388727&forum_id=1100.
I inverted the subtraction in
templateing.DateHTMLProperty.reldate on both HEAD and maint-0-6.
History
Date User Action Args
2003-11-14 10:43:47jkewcreate