[ruby-core:75988] [Ruby trunk Misc#10473] Date.to_datetime.to_time != Date.to_time
From:
akr@...
Date:
2016-06-13 09:12:03 UTC
List:
ruby-core #75988
Issue #10473 has been updated by Akira Tanaka. The proposed patch seems fine. However I recommend to add more tests for old dates around transition between Jurian to Geregorian Calendar. ---------------------------------------- Misc #10473: Date.to_datetime.to_time != Date.to_time https://bugs.ruby-lang.org/issues/10473#change-59182 * Author: Jack Lowe * Status: Open * Priority: Normal * Assignee: ---------------------------------------- Date.new(2014,1,1).to_datetime.to_time.utc.to_s => "2014-01-01 00:00:00 UTC" Date.new(2014,1,1).to_time.utc.to_s => "2014-01-01 05:00:00 UTC" -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>