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

DateField timezone handling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 3.3
    • None
    • Schema and Analysis
    • Debian Gnu/Linux, OpenJDK Runtime Environment 14.0-b16

    Description

      The Solr DateField appears to only be partially ISO 8601 compliant.

      The DateMathParser requires Timezone modifications to be in the format "+nMINUTES", "+xHOURS", "+yDAYS" etc.

      http://lucene.apache.org/solr/api/org/apache/solr/schema/DateField.html

      ISO 6801 states that timezone modifications should be in the format +00:01, +01:00

      http://en.wikipedia.org/wiki/ISO_8601#Time_offsets_from_UTC

      It would be useful if Solr DateField could parse both (I presume there's a reason for +nMINUTE etc somewhere in Java.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            devanubis Howard Cox
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: