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

DateField implicitly uses default locale to format milliseconds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3
    • None
    • None

    Description

      The ISO8601CanonicalDateFormat class which is defined inside the DateField class doesn't specify the US locale when creating the formatter used for milliseconds. Because of that the following unit tests fail when run with another locale than english:
      org.apache.solr.schema.LegacyDateFieldTest
      org.apache.solr.schema.DateFieldTest

      The attached patch resolves this issue.

      Attachments

        1. schema.DateField-locale.patch.txt
          1 kB
          Stefan Oestreicher

        Activity

          People

            hossman Chris M. Hostetter
            dlx Stefan Oestreicher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: