Hi Justin,

Thanks for this.  Surely a more elegant solution.  I should get myself
used to looking at the edge branch and consult my developers first for
a good solution - their Rails skills are way ahead of mine =)

Johann

On Jun 16, 10:39 pm, Justin G <[email protected]> wrote:
> Johann,
>
> The edge branch includes a patch to address the depreciation of
> Time.today.  See the following commit for changes that were made to
> the statistics and user controllers.
>
> http://github.com/bborn/communityengine/commit/187ce78527aac070069c43...
>
> Justin
>
> On Jun 15, 10:35 am, johanntagle <[email protected]> wrote:
>
> > Don't know why I can't see my post a few minutes ago - is there a
> > delay in google groups?  Anyway, I'll repost it with some corrections.
>
> > From what I saw the whole thing is due to Time.today being deprecated
> > as of rubygems 0.9.5.  Then they started removing it at 1.3.2 and at
> > 1.3.4 it's completely gone.
>
> > To fix my copy I saved the ff as app_root/lib/timetoday.rb
>
> > def Time.today
> >   t = Time.now
> >   t - ((t.to_f + t.gmt_offset) % 86400)
> > end
>
> > That's the definition of Time.today in 1.3.1.  Then I put a "required
> > 'lib/timetoday' in environment.rb
>
> > Btw, the only time I encountered this error while using the app is
> > when going to /statistics (Admin dashboard -> statistics)
>
> > Thanks!
>
> > Johann
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
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/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to