How do you convert js values received as TZInfo identifiers to Rails TimeZone name/key?
FROM: \"America/New_York\"
returned fro
Temporal includes the needed logic, but to answer your question:
Time.zone = ActiveSupport::TimeZone.new("America/New_York")
Edit, I guess my answer is incomplete. You want to get it from "America/New_York" to "Eastern Time (US & Canada)", correct? If that's the case this is the best solution I have -- though someone may be able to provide a better one.
ActiveSupport::TimeZone::MAPPING.select {|k, v| v == "America/New_York" }.keys.first