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

DateTimeUtils produces incorrect results for days before Gregorian cutovers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.13.0
    • Fix Version/s: avatica-1.12.0
    • Component/s: avatica
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: