Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12561

Port ExtractionDateUtil to java.time API

    XMLWordPrintableJSON

Details

    Description

      The ExtractionDateUtil class in the extraction contrib uses SimpleDateFormatter.  The Java 8 java.time API is superior; you can find articles out there why.  One thing that comes to mind is less timezone bugginess – SOLR-10243.  Although the API may be a bit baroque IMO (over-engineered).  Here I'd like to switch over the API and furthermore have the patterns be pre-parsed so that at runtime we don't need to re-parse the patterns.

      Attachments

        1. SOLR-12561.patch
          26 kB
          David Smiley
        2. SOLR-12561.patch
          21 kB
          David Smiley
        3. SOLR-12561.patch
          21 kB
          David Smiley

        Issue Links

          Activity

            People

              dsmiley David Smiley
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: