From: tadayoshi funaba Date: 2011-07-23T19:40:01+09:00 Subject: [ruby-core:38419] [Ruby 1.9 - Bug #4975][Rejected] DateTime.civil calculates seconds incorrectly with fractional offsets Issue #4975 has been updated by tadayoshi funaba. Status changed from Assigned to Rejected Priority changed from Normal to Low The contagion of flonum affects the determination of date and time. You may give it as a rational number or a string. DateTime.new(2011,5,13,17,31,13,Rational('-0.25')) #=> # DateTime.new(2011,5,13,17,31,13,Rational(-1,4)) #=> # DateTime.new(2011,5,13,17,31,13,'-06:00') #=> # ---------------------------------------- Bug #4975: DateTime.civil calculates seconds incorrectly with fractional offsets http://redmine.ruby-lang.org/issues/4975 Author: Jeff Felchner Status: Rejected Priority: Low Assignee: tadayoshi funaba Category: Target version: ruby -v: ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.4] Ruby Version 1.9.2p180 DateTime.civil(2011, 5, 13, 17, 31, 13, -0.25).sec # => 12 -- http://redmine.ruby-lang.org