Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1884

DateTimeUtils produces incorrect results for days before Gregorian cutovers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.13.0
    • avatica-1.12.0
    • avatica
    • None

    Description

      dateStringToUnixDate() / unixDateToString() do not return consistent result.

      The following test fails:

        @Test public void testUnixDate() {
          int days = DateTimeUtils.dateStringToUnixDate("1500-04-30");
          assertEquals("1500-04-30", DateTimeUtils.unixDateToString(days));
        }
      

      Attachments

        Issue Links

          Activity

            People

              wheat9 Haohui Mai
              wheat9 Haohui Mai
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: