I’ve been banging my head against dealing with time zones in Rails for a few days now. I want users on my site to be able to pick a time of day to receive a reminder email. This is how I have my time configured in
config.time_zone = 'Eastern Time (US & Canada)' config.active_record.default_timezone = :local
But when I set the reminder on Heroku and check in console, it looks like this:
User.last.reminder.time => 2000-01-01 11:00:00 +0000 User.last.reminder.time.zone => 'UTC'
My goal is to run a rake task every hour that will add upcoming reminders to an email queue. Any tips on getting this to work? Many thanks!