[ruby-core:66071] [ruby-trunk - misc #10473] [Open] Date.to_datetime.to_time != Date.to_time

From: lojack44@...
Date: 2014-11-03 17:01:46 UTC
List: ruby-core #66071
Issue #10473 has been reported by Jack Lowe.

----------------------------------------
misc #10473: Date.to_datetime.to_time != Date.to_time
https://bugs.ruby-lang.org/issues/10473

* Author: Jack Lowe
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------

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/

In This Thread

Prev Next