mirror of
https://github.com/github/rails.git
synced 2026-01-30 08:48:06 -05:00
TimeZone#to_s uses UTC rather than GMT. References #1689.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8370 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* TimeZone#to_s uses UTC rather than GMT. #1689 [Chu Yeow]
|
||||
|
||||
* Refactor of Hash#symbolize_keys! to use Hash#replace. Closes #10420 [ReinH]
|
||||
|
||||
* Fix HashWithIndifferentAccess#to_options! so it doesn't clear the options hash. Closes #10419 [ReinH]
|
||||
|
||||
@@ -68,7 +68,7 @@ class TimeZone
|
||||
|
||||
# Returns a textual representation of this time zone.
|
||||
def to_s
|
||||
"(GMT#{formatted_offset}) #{name}"
|
||||
"(UTC#{formatted_offset}) #{name}"
|
||||
end
|
||||
|
||||
@@zones = nil
|
||||
|
||||
@@ -67,7 +67,7 @@ class TimeZoneTest < Test::Unit::TestCase
|
||||
|
||||
def test_to_s
|
||||
zone = TimeZone.create( "Test", 4200 )
|
||||
assert_equal "(GMT+01:10) Test", zone.to_s
|
||||
assert_equal "(UTC+01:10) Test", zone.to_s
|
||||
end
|
||||
|
||||
def test_all_sorted
|
||||
|
||||
Reference in New Issue
Block a user