Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

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  
    6767 
    6868  def test_to_s 
    6969    zone = TimeZone.create( "Test", 4200 ) 
    70     assert_equal "(GMT+01:10) Test", zone.to_s 
     70    assert_equal "(UTC+01:10) Test", zone.to_s 
    7171  end 
    7272 
    7373  def test_all_sorted 
  • lib/active_support/values/time_zone.rb

    old new  
    6767 
    6868  # Returns a textual representation of this time zone. 
    6969  def to_s 
    70     "(GMT#{formatted_offset}) #{name}" 
     70    "(UTC#{formatted_offset}) #{name}" 
    7171  end 
    7272 
    7373  @@zones = nil