rails // query by timezone during daytime
问题 Not that confident when it comes to use timezones, looking for some help on this one I have a cron job that check users every once in a while, which call a rake task. Within this rake task, I query users and sent each an email base on conditions. I have the timezone info for each users. I'd like to have a query on those users that would only return the users that are currently in their daytime How would one achieve that ? Best 回答1: This depends on a few different things, but I'll go by how my