What is the best way to handle the following situation:
We have "admins" who create "events". These events can be nationwide, ie: different time zones. As of now there is a select menu with the current list of US time zones. There is a corresponding column in the database table, for the time zone selected. This is so the admin can select 5PM Eastern, 5PM Pacific, etc. Instead of trying to figure out the GMT equivalent.
The application is using UTC as per the environment.rb file, as the default time-zone.
If an admin selects "Eastern Time (US & Canada)", the date stamp selected is still saved as UTC (or the app default). I need to perform queries where events don't show up before the time selected above including the time zone.
Since the events need their own time zone, how should the data be saved? I was originally thinking I need to trick Rails before it saves the value, so it saves UTC offset for the time zone.
This would be handled in before_save and after_find model methods. But it doesn't seem to work, or rather I am missing something..