Project

General

Profile

Misc #10473

Date.to_datetime.to_time != Date.to_time

Added by lojack (Jack Lowe) about 6 years ago. Updated over 4 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
[ruby-core:66071]

Description

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"

Also available in: Atom PDF