RailsCasts Pro episodes are now free!

Learn more or hide this

Eric Miller's Profile

GitHub User: TheEricMiller

Site: TheEricMiller.com

Comments by Eric Miller

Avatar

Great episode, building off this for auto detection...
** How do you convert js values received as TZInfo identifiers to Rails TimeZone name/key? **

FROM: "America/New_York" returned from JavaScript TZinfo detection
TO: "Eastern Time (US & Canada)" convention used in Rails TimeZone

http://stackoverflow.com/questions/14221615/how-to-convert-tzinfo-identifier-to-rails-timezone-name-key

Thanks!
-E