lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1063501 - in /lucene/dev/trunk/lucene: CHANGES.txt src/java/org/apache/lucene/document/DateTools.java
Date Tue, 25 Jan 2011 22:56:18 GMT
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>()
{



Mime
View raw message