Skip to content

Calendar info in Date/DateTime is lost #572

@nobu

Description

@nobu
$ ruby -rdate -rpsych \
  -e 'di = Date.new(1000, 1, 1, Date::ITALY)' \
  -e 'dg = Date.new(1000, 1, 1, Date::GREGORIAN)' \
  -e 'puts Psych.dump([di, dg]), di == dg'
---
- 1000-01-01
- 1000-01-01
false

As shown by the last false di and dg are different dates, but cannot distinguish in the YAML dumped by Psych.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions