summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/pack
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-07-17 14:53:55 -0700
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-10-24 18:39:04 +0900
commit9eb798a3f1de6a9e08e510904d376952d5e94d50 (patch)
treed000971b8e7f0fa83890453064a87f884eec4d45 /spec/ruby/core/array/pack
parentf1de438380893682257b8648784a0fe7714b1f9f (diff)
[ruby/date] Make julian dates roundtrip through to_time.to_date
Previously, julian dates would not round trip through to_time.to_date, because Time is always considered gregorian. This converts the Date instance from julian to gregorian before converting to Time, ensuring that an equal date object will be returned if converting that Time back to Date. This does result in julian Date objects showing different day values if converting to Time. Fixes Ruby Bug 8428. https://github.com/ruby/date/commit/d8df64555e
Diffstat (limited to 'spec/ruby/core/array/pack')
0 files changed, 0 insertions, 0 deletions