I have an issue where I need to specify a datetime_select offset by a specific time zone that is different from the application’s default time zone. It would be really helpful if I could just specify the time zone that is used as one of the multiparameter attributes, so that it would be used when converting the params into a DateTime object. Example usage would be something like this:
config.time_zone = ‘UTC’
datetime_select(“article”, “publish_at”, time_zone: “Pacific Time (US & Canada)”)
datetime_select(“article”, “publish_at”, include_time_zone: true)
The second option would display a time_zone_select, allowing the user to choose which time zone the time should be saved in.
I’m not sure how to go about adding this feature, but I would be happy to help if you could point me in the right direction.