Project

General

Profile

« Previous | Next » 

Revision e07d450d

Added by nobu (Nobuyoshi Nakada) almost 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