Created
November 10, 2011 22:13
-
-
Save adrianpike/1356418 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby-1.9.2-p290 :024 > ActiveSupport::TimeZone.us_zones | |
| => [(GMT-10:00) Hawaii, (GMT-09:00) Alaska, (GMT-08:00) Pacific Time (US & Canada), (GMT-07:00) Arizona, (GMT-07:00) Mountain Time (US & Canada), (GMT-06:00) Central Time (US & Canada), (GMT-05:00) Eastern Time (US & Canada), (GMT-05:00) Indiana (East)] | |
| ruby-1.9.2-p290 :025 > ActiveSupport::TimeZone.us_zones.first.to_s | |
| => "(GMT-10:00) Hawaii" | |
| ruby-1.9.2-p290 :026 > ActiveSupport::TimeZone.us_zones.first.name | |
| => "Hawaii" | |
| ruby-1.9.2-p290 :027 > Time.zone = ActiveSupport::TimeZone.us_zones.first.name | |
| => "Hawaii" | |
| ruby-1.9.2-p290 :028 > Time.zone = ActiveSupport::TimeZone.us_zones.first.to_s | |
| ArgumentError: Invalid Timezone: (GMT-10:00) Hawaii | |
| from /Users/adrian/.rvm/gems/ruby-1.9.2-p290@planeminder/bundler/gems/rails-1703ded9f3c4/activesupport/lib/active_support/core_ext/time/zones.rb:61:in `rescue in find_zone!' | |
| from /Users/adrian/.rvm/gems/ruby-1.9.2-p290@planeminder/bundler/gems/rails-1703ded9f3c4/activesupport/lib/active_support/core_ext/time/zones.rb:53:in `find_zone!' | |
| from /Users/adrian/.rvm/gems/ruby-1.9.2-p290@planeminder/bundler/gems/rails-1703ded9f3c4/activesupport/lib/active_support/core_ext/time/zones.rb:37:in `zone=' | |
| from (irb):28 | |
| from /Users/adrian/.rvm/gems/ruby-1.9.2-p290@planeminder/bundler/gems/rails-1703ded9f3c4/railties/lib/rails/commands/console.rb:45:in `start' | |
| from /Users/adrian/.rvm/gems/ruby-1.9.2-p290@planeminder/bundler/gems/rails-1703ded9f3c4/railties/lib/rails/commands/console.rb:8:in `start' | |
| from /Users/adrian/.rvm/gems/ruby-1.9.2-p290@planeminder/bundler/gems/rails-1703ded9f3c4/railties/lib/rails/commands.rb:41:in `<top (required)>' | |
| from script/rails:6:in `require' | |
| from script/rails:6:in `<main>' | |
| ruby-1.9.2-p290 :029 > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment