Project

General

Profile

Actions

Feature #10473

open

Change Date#to_datetime to use local time

Added by lojack (Jack Lowe) over 9 years ago. Updated over 2 years ago.

Status:
Open
Assignee:
-
Target version:
-
[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"

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0