diff options
author | Geoff Buesing <gbuesing@gmail.com> | 2008-02-10 19:15:32 +0000 |
---|---|---|
committer | Geoff Buesing <gbuesing@gmail.com> | 2008-02-10 19:15:32 +0000 |
commit | 163a4c6f4545c040c7ea25c298865a401b1b24f2 (patch) | |
tree | 74d987e303b03cb46cb619bad84d7cf154146916 | |
parent | b9be374ddd2142ca53da3c235e35ccbb70c66842 (diff) | |
download | rails-163a4c6f4545c040c7ea25c298865a401b1b24f2.tar.gz rails-163a4c6f4545c040c7ea25c298865a401b1b24f2.tar.bz2 rails-163a4c6f4545c040c7ea25c298865a401b1b24f2.zip |
Pruning unneeded TimeWithZone#change_time_zone_to_current
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8851 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | activesupport/CHANGELOG | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/time_with_zone.rb | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index c132e5372a..6cbef65ae5 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Pruning unneeded TimeWithZone#change_time_zone_to_current [Geoff Buesing] + * Time#zone=, #in_time_zone and #change_time_zone accept a Duration [Geoff Buesing] * Time#in_time_zone handles Time.local instances correctly [Geoff Buesing] diff --git a/activesupport/lib/active_support/time_with_zone.rb b/activesupport/lib/active_support/time_with_zone.rb index c5810c2c19..6b9fed4b8f 100644 --- a/activesupport/lib/active_support/time_with_zone.rb +++ b/activesupport/lib/active_support/time_with_zone.rb @@ -42,11 +42,6 @@ module ActiveSupport time.change_time_zone(new_zone) end - # Changes the time zone to Time.zone without converting the time - def change_time_zone_to_current - time.change_time_zone_to_current - end - # Returns a Time.local() instance of the simultaneous time in your system's ENV['TZ'] zone def localtime utc.dup.localtime # use #dup because Time#localtime is destructive |