You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2011/01/25 23:56:18 UTC
svn commit: r1063501 - in /lucene/dev/trunk/lucene: CHANGES.txt
src/java/org/apache/lucene/document/DateTools.java
Author: uschindler
Date: Tue Jan 25 22:56:18 2011
New Revision: 1063501
URL: http://svn.apache.org/viewvc?rev=1063501&view=rev
Log:
LUCENE-1846: DateTools now uses the US locale everywhere, so DateTools.round() is safe also in strange locales
Modified:
lucene/dev/trunk/lucene/CHANGES.txt
lucene/dev/trunk/lucene/src/java/org/apache/lucene/document/DateTools.java
Modified: lucene/dev/trunk/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/CHANGES.txt?rev=1063501&r1=1063500&r2=1063501&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/CHANGES.txt (original)
+++ lucene/dev/trunk/lucene/CHANGES.txt Tue Jan 25 22:56:18 2011
@@ -698,6 +698,9 @@ Bug fixes
* LUCENE-2693: RAM used by IndexWriter was slightly incorrectly computed.
(Jason Rutherglen via Shai Erera)
+* LUCENE-1846: DateTools now uses the US locale everywhere, so DateTools.round()
+ is safe also in strange locales. (Uwe Schindler)
+
New features
* LUCENE-2128: Parallelized fetching document frequencies during weight
Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/document/DateTools.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/document/DateTools.java?rev=1063501&r1=1063500&r2=1063501&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/document/DateTools.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/document/DateTools.java Tue Jan 25 22:56:18 2011
@@ -69,7 +69,7 @@ public class DateTools {
MILLISECOND_FORMAT.setTimeZone(GMT);
}
- final Calendar calInstance = Calendar.getInstance(GMT);
+ final Calendar calInstance = Calendar.getInstance(GMT, Locale.US);
}
private static final ThreadLocal<DateFormats> FORMATS = new ThreadLocal<DateFormats>() {