Hi all!

I have one really annoying problem - I hope you can give me some
advice...

1) I have a model "Article". Article has among other fields
created_at, published_at and publish_date field.
I want the list of "published" articles if the publish_date is <= then
current time/date.

2) In my Article model I have following scope:
https://github.com/otobrglez/sveze-jabolko/blob/master/app/models/article.rb#L26

3) Settings for my timezone in rails:
https://github.com/otobrglez/sveze-jabolko/blob/master/config/application.rb#L30

4) I also set TZ for my Heroku instance like so:
heroku config:add TZ="Europe/Ljubljana"

5) This is my last migration:
https://github.com/otobrglez/sveze-jabolko/blob/master/db/migrate/20110922105754_change_publish_date.rb

I use Heroku and PostgreSQL. But the darn thing just does not work as
it should :| What should I do that this thing will work as expected?

I want article to be visible after the "publish_date".

Thanks for any advice and have a nice day!

- Oto

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to