I am running a rails app that uses rufus-scheduler to send out a daily e-mail to all users at noon, however, it currently sends it out at noon for the apps timezone "Taipei".
I am capturing user timezones on signup, but I am unable to put a variable into a rufus-scheduler task
scheduler.cron('0 15 * * * @time_zone') do
Account.all.each do |account|
CODE
account.users.each do |user|
DELIVER EMAIL CODE
end
end
end
I guess I'm just not sure where to define the @time_zone variable so that rufus will read it properly.
Thanks in advance!