Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use ActiveSupport::TimeZone in time:zones rake tasks

  • Loading branch information...
commit 9d8fdc92c02b796f4f913670f74a9403d2e3c52f 1 parent dd89462
@lifo lifo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/tasks/misc.rake
View
2  railties/lib/tasks/misc.rake
@@ -44,7 +44,7 @@ namespace :time do
end
end
previous_offset = nil
- TimeZone.__send__(method).each do |zone|
+ ActiveSupport::TimeZone.__send__(method).each do |zone|
if offset.nil? || offset == zone.utc_offset
puts "\n* UTC #{zone.formatted_offset} *" unless zone.utc_offset == previous_offset
puts zone.name
Please sign in to comment.
Something went wrong with that request. Please try again.