[
https://issues.apache.org/jira/browse/LUCENE-7278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley updated LUCENE-7278:
---------------------------------
Attachment: LUCENE_7278.patch
The attached patch deprecates the INSTANCE singleton and makes the constructor
public to accept a Calendar. 2 static instances are provided, one based on the
default {{Calendar.getInstance()}} and the other with no GCD set.
I also improved toString(Calendar) to not use SimpleDateFormatter any more
(yay!). Also, it now has format parity with
java.time.DateTimeFormatter.ISO_INSTANT which means using a leading '+' beyond
9999; though still no trailing 'Z'.
> Make template Calendar configurable in DateRangePrefixTree
> ----------------------------------------------------------
>
> Key: LUCENE-7278
> URL: https://issues.apache.org/jira/browse/LUCENE-7278
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/spatial-extras
> Reporter: David Smiley
> Assignee: David Smiley
> Fix For: 6.1
>
> Attachments: LUCENE_7278.patch
>
>
> DateRangePrefixTree (a SpatialPrefixTree designed for dates and date ranges)
> currently uses a hard-coded Calendar template for making new instances. This
> ought to be configurable so that, for example, the Gregorian change date can
> be configured. This is particularly important for compatibility with Java
> 8's java.time API which uses the Gregorian calendar for all time (there is no
> use of Julian prior to 1582).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]