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

Changeset 8716

Show
Ignore:
Timestamp:
01/25/08 03:54:10 (5 months ago)
Author:
gbuesing
Message:

TimeZone#to_s uses UTC rather than GMT; reapplying change that was undone in [8679]. References #1689

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activesupport/CHANGELOG

    r8715 r8716  
    11*SVN* 
     2 
     3* TimeZone#to_s uses UTC rather than GMT; reapplying change that was undone in [8679]. #1689 [Cheah Chu Yeow] 
    24 
    35* 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]   
  • trunk/activesupport/lib/active_support/values/time_zone.rb

    r8710 r8716  
    172172  # Returns a textual representation of this time zone. 
    173173  def to_s 
    174     "(GMT#{formatted_offset}) #{name}" 
     174    "(UTC#{formatted_offset}) #{name}" 
    175175  end 
    176176 
  • trunk/activesupport/test/time_zone_test.rb

    r8710 r8716  
    9696   
    9797  def test_to_s 
    98     assert_equal "(GMT+03:00) Moscow", TimeZone['Moscow'].to_s 
     98    assert_equal "(UTC+03:00) Moscow", TimeZone['Moscow'].to_s 
    9999  end 
    100100