diff options
author | Geoff Buesing <gbuesing@gmail.com> | 2008-01-25 03:54:10 +0000 |
---|---|---|
committer | Geoff Buesing <gbuesing@gmail.com> | 2008-01-25 03:54:10 +0000 |
commit | 2168178bdbb14f1b8a97f22a3eb78dd533c9cb34 (patch) | |
tree | 1f1b94fc6a428b2e3c9b585df45964047616a663 | |
parent | 8f7232bc76cba944ecb7769bb3dab633ed15c3a6 (diff) | |
download | rails-2168178bdbb14f1b8a97f22a3eb78dd533c9cb34.tar.gz rails-2168178bdbb14f1b8a97f22a3eb78dd533c9cb34.tar.bz2 rails-2168178bdbb14f1b8a97f22a3eb78dd533c9cb34.zip |
TimeZone#to_s uses UTC rather than GMT; reapplying change that was undone in [8679]. References #1689
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8716 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | activesupport/CHANGELOG | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/values/time_zone.rb | 2 | ||||
-rw-r--r-- | activesupport/test/time_zone_test.rb | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index 8514db47fe..833c3dd07a 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* TimeZone#to_s uses UTC rather than GMT; reapplying change that was undone in [8679]. #1689 [Cheah Chu Yeow] + * Time.days_in_month defaults to current year if no year is supplied as argument #10799 [Radar], uses Date.gregorian_leap? to determine leap year, and uses constant lookup to determine days in month [Geoff Buesing] * Adding Time and DateTime #compare_with_coercion, which layers behavior on #<=> so that any combination of Time, DateTime and ActiveSupport::TimeWithZone instances can be chronologically compared [Geoff Buesing] diff --git a/activesupport/lib/active_support/values/time_zone.rb b/activesupport/lib/active_support/values/time_zone.rb index 7adc8133c6..259b49a50a 100644 --- a/activesupport/lib/active_support/values/time_zone.rb +++ b/activesupport/lib/active_support/values/time_zone.rb @@ -171,7 +171,7 @@ class TimeZone # Returns a textual representation of this time zone. def to_s - "(GMT#{formatted_offset}) #{name}" + "(UTC#{formatted_offset}) #{name}" end begin # the following methods depend on the tzinfo gem diff --git a/activesupport/test/time_zone_test.rb b/activesupport/test/time_zone_test.rb index 72f25a1683..23d9e3f4be 100644 --- a/activesupport/test/time_zone_test.rb +++ b/activesupport/test/time_zone_test.rb @@ -95,7 +95,7 @@ class TimeZoneTest < Test::Unit::TestCase end def test_to_s - assert_equal "(GMT+03:00) Moscow", TimeZone['Moscow'].to_s + assert_equal "(UTC+03:00) Moscow", TimeZone['Moscow'].to_s end def test_all_sorted |