Ticket #1689: GMT_to_UTC.diff
| File GMT_to_UTC.diff, 0.8 kB (added by chuyeow, 7 months ago) |
|---|
-
test/time_zone_test.rb
old new 67 67 68 68 def test_to_s 69 69 zone = TimeZone.create( "Test", 4200 ) 70 assert_equal "( GMT+01:10) Test", zone.to_s70 assert_equal "(UTC+01:10) Test", zone.to_s 71 71 end 72 72 73 73 def test_all_sorted -
lib/active_support/values/time_zone.rb
old new 67 67 68 68 # Returns a textual representation of this time zone. 69 69 def to_s 70 "( GMT#{formatted_offset}) #{name}"70 "(UTC#{formatted_offset}) #{name}" 71 71 end 72 72 73 73 @@zones = nil