Thanks Blake, that cured it. Did I miss this in the wiki, where about is the documentation for this change?
On Wed, Sep 24, 2008 at 1:41 AM, Blake Johnson <[EMAIL PROTECTED]>wrote: > > 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 > > > -- See me at http://am.notsowise.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
