Skip to content
  • U.Nakamura's avatar
    082b0acf
    merge revision(s)... · 082b0acf
    U.Nakamura authored
    merge revision(s) 276f6a22,95bef7b6: [Backport #17352]
    
    	Don't double fractional seconds when passing timezone object to Time.new
    
    	I found that fractional seconds were doubled when using the timezone
    	feature of Time in Sequel's named_timezones extension (which uses
    	TZInfo for the timezone object), and traced the problem to this code.
    
    	There is no subsecx being modified in the utc_to_local call below
    	this, and I'm not sure why you would want to add in the fractional
    	seconds unless you assumed the timezone conversion would drop the
    	existing fractional seconds (TZInfo doesn't drop fractional seconds).
    
    
    	Subsecond of Time::tm should be 0
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    082b0acf
    merge revision(s)...
    U.Nakamura authored
    merge revision(s) 276f6a22,95bef7b6: [Backport #17352]
    
    	Don't double fractional seconds when passing timezone object to Time.new
    
    	I found that fractional seconds were doubled when using the timezone
    	feature of Time in Sequel's named_timezones extension (which uses
    	TZInfo for the timezone object), and traced the problem to this code.
    
    	There is no subsecx being modified in the utc_to_local call below
    	this, and I'm not sure why you would want to add in the fractional
    	seconds unless you assumed the timezone conversion would drop the
    	existing fractional seconds (TZInfo doesn't drop fractional seconds).
    
    
    	Subsecond of Time::tm should be 0
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Loading