Project

General

Profile

« Previous | Next » 

Revision e07d450d

Added by nobu (Nobuyoshi Nakada) over 3 years ago

[ruby/date] Fix Time#to_datetime before calendar reform

Time is always in the proleptic Gregorian calendar.
Also DateTime#to_time should convert to the Gregorian calendar first,
before extracting its components.

https://bugs.ruby-lang.org/issues/18946#change-98527

https://github.com/ruby/date/commit/b2aee75248