lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1063506 - in /lucene/java/branches/lucene_3_0: CHANGES.txt src/java/org/apache/lucene/document/DateTools.java
Date Tue, 25 Jan 2011 23:03:11 GMT
Author: uschindler
Date: Tue Jan 25 23:03:10 2011
New Revision: 1063506

URL: http://svn.apache.org/viewvc?rev=1063506&view=rev
Log:
LUCENE-1846: DateTools now uses the US locale everywhere, so DateTools.round() is safe also
in strange locales

Modified:
    lucene/java/branches/lucene_3_0/CHANGES.txt
    lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/document/DateTools.java

Modified: lucene/java/branches/lucene_3_0/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_3_0/CHANGES.txt?rev=1063506&r1=1063505&r2=1063506&view=diff
==============================================================================
--- lucene/java/branches/lucene_3_0/CHANGES.txt (original)
+++ lucene/java/branches/lucene_3_0/CHANGES.txt Tue Jan 25 23:03:10 2011
@@ -8,6 +8,9 @@ Bug fixes
 * LUCENE-2584: SegmentInfo.files() could hit ConcurrentModificationException if
   called by multiple threads. (Alexander Kanarsky via Shai Erera)
 
+* LUCENE-1846: DateTools now uses the US locale everywhere, so DateTools.round()
+  is safe also in strange locales.  (Uwe Schindler)
+
 ======================= Release 3.0.3 2010-12-03 =======================
 
 Changes in runtime behavior

Modified: lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/document/DateTools.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/document/DateTools.java?rev=1063506&r1=1063505&r2=1063506&view=diff
==============================================================================
--- lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/document/DateTools.java (original)
+++ lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/document/DateTools.java Tue
Jan 25 23:03:10 2011
@@ -72,7 +72,7 @@ public class DateTools {
     MILLISECOND_FORMAT.setTimeZone(GMT);
   }
 
-  private static final Calendar calInstance = Calendar.getInstance(GMT);
+  private static final Calendar calInstance = Calendar.getInstance(GMT, Locale.US);
   
   // cannot create, the class has static methods only
   private DateTools() {}



Mime
View raw message