On Sat, Oct 4, 2008 at 6:31 AM, AssimovT <[EMAIL PROTECTED]> wrote: > > Hiya > > I m trying to add last activity feature shown on public profile. It > works fine if I straight display the datetime, however with > time_ago_in_words I get problems with timezones, I suspect. > > http://github.com/assimovt/lovd-by-less/commit/c85b9dff5149c21d8831fae48af2aceb144d10e1 > > Is there anyone could help me? I have seen at least users model has > Timezone defined... > > Thanks, > > Tair.
It looks like time zone support is not fully implemented. You'll need to add a before filter to set up the zone for the current user and a way for the user to pic a zone. Once you do that, everything else should work fine. Helpful links: http://b.lesseverything.com/2008/6/9/converting-tzinfo-from-rails-2-0-to-2-1 http://mad.ly/2008/04/09/rails-21-time-zone-support-an-overview/ I'll push your change to master. :) cheers, steven bristol --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lovd by Less" 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/lovdbyless?hl=en Who loves ya baby? -~----------~----~----~----~------~----~------~--~---
