[TYPO3-core] RFC: Fix negative age in FE

Michael Stucki michael at typo3.org
Tue Feb 28 10:39:01 CET 2006


Hi Bernhard,

> Solution (would also be nice to use this on for the BE or have ONE SHARED
> method: Make a variable which contains the absolute value of the seconds
> value. Compare in which unit to display using the absolute value.
> Generate the output using the original value (no need for a $prefix
> variable and string juggling)

I don't like the naming:

+               $abs = abs($seconds);

May you keep the name $seconds (or $seconds_abs) please?

In any case +1

Sorry, didn't look at the rest. Too much for the moment...

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/



More information about the TYPO3-team-core mailing list