I have a Rails 3.0.5 app that uses distance_of_time_in_words to show some timestamps:
= "#{distance_of_time_in_words(note.created_at.localtime.to_time, Time.zone.now)} ago" However, in dev, it works fine, but on Heroku, I'm getting consistently wrong values returned. For instance, where the dev env will return the values 20 hours ago, 1 day ago etc, Heroku's version will return 'less than a minute ago' for both (some others vary by a minute or so). So. Question is WTF? The timestamps in the data are correct (and the same between dev and production). Time.now on Heroku is returning: Wed Apr 06 11:31:46 +0100 2011 Time.zone.now on Heroku is returning: Wed, 06 Apr 2011 10:31:46 UTC +00:00 Locally, the same values are: Wed Apr 06 11:31:46 +0100 2011 and Wed, 06 Apr 2011 10:31:46 UTC +00:00 Any ideas? Neil Middleton http://about.me/neilmiddleton -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.