Project

General

Profile

Actions

Bug #8454

closed

Date and Time compatibility

Added by jonys (Jonatan Hejzlar) almost 11 years ago. Updated almost 11 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
2.0.0p195
[ruby-core:55172]

Description

Time.to_datetime creates a DateTime object with the local timezone
Date.to_datetime creates a DateTime object with the +0000 timezone

As a result, Date.to_time.to_datetime gives a different result than Date.to_datetime.

Actions

Also available in: Atom PDF

Like0
Like0