Skip to content

Instantly share code, notes, and snippets.

@cwsaylor
Created July 23, 2012 18:20
Show Gist options
  • Save cwsaylor/3165177 to your computer and use it in GitHub Desktop.
Save cwsaylor/3165177 to your computer and use it in GitHub Desktop.
[28] pry(main)> ::ActiveSupport::TimeZone[-5].name
=> "America/New_York"
[29] pry(main)> Time.now.in_time_zone("America/New_York")
=> Mon, 23 Jul 2012 14:19:39 EDT -04:00
[30] pry(main)> Time.now.in_time_zone(-5)
=> Mon, 23 Jul 2012 14:22:37 EDT -04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment