Project

General

Profile

Actions

Bug #18946

closed

Time#to_date returns incorrect date

Added by kei-p (Keisuke Ishizawa) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-dev:51185]

Description

Time#to_date returns incorrect date.

Actual Behavior:

Time.local(1499, 12, 27).to_date
=> #<Date: 1499-12-18 ((2268919j,0s,0n),+0s,2299161j)>

Expected Behavior:

Time.local(1499, 12, 27).to_date
=> #<Date: 1499-12-27 ...>
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0