You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2008/08/15 08:49:44 UTC

[jira] Resolved: (SOLR-701) DateField implicitly uses default locale to format milliseconds

     [ https://issues.apache.org/jira/browse/SOLR-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man resolved SOLR-701.
---------------------------

       Resolution: Fixed
    Fix Version/s: 1.3
         Assignee: Hoss Man

Note: this bug was introduced in SOLR-470.

Commited patch along with some refactoring to make it clear *why* UTC and Locale.US are used for the two very different reasons they are used in this class.

Committed revision 686159.


thanks Stefan.

> DateField implicitly uses default locale to format milliseconds
> ---------------------------------------------------------------
>
>                 Key: SOLR-701
>                 URL: https://issues.apache.org/jira/browse/SOLR-701
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Stefan Oestreicher
>            Assignee: Hoss Man
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: schema.DateField-locale.patch.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.