On Sep 21, 11:59 pm, "Stanley FONG" <[EMAIL PROTECTED]> wrote: > It would be nice if someone would post a quick fix to > $time_ago = intval((time()-strtotime($post->pubdate))/86400) > > that would save me from writing the theme functions again. >
Hi Stanley, That code needs only a minimal change: $time_ago = intval( ( time() - $post->pubdate->int ) / 86400 ); --Blake --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/habari-dev -~----------~----~----~----~------~----~------~--~---
