ActiveRecord: find with your local time zone
Wrote at April 29, 2010 da Filippo Camillo
When you save or update an entry, ActiveRecord update automagically the special fields "created_at" and "updated_at" but it doesn't use your local timezone.
It use instead UTC timezone.
So do I have to convert my timezone to UTC before call the Rails find method?
I agree, but HOW?
Here we have a very simple tip about searching between two dates:
Reference: Time Class method UTC
no comment yet