Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6785

DateUtils can not handle date before 1970/01/01 correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • SQL
    • None

    Description

      scala> val d = new Date(100)
      d: java.sql.Date = 1969-12-31
      
      scala> DateUtils.toJavaDate(DateUtils.fromJavaDate(d))
      res1: java.sql.Date = 1970-01-01
      
      

      Attachments

        Issue Links

          Activity

            People

              ckadner Christian Kadner
              davies Davies Liu
              Michael Armbrust Michael Armbrust
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: