Apache Lucene open-source search software
LUCENE-1846: DateTools now uses the US locale everywhere, so DateTools.round() is safe also in strange locales
Uwe Schindlerbb391fd3edc3
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex f40b16255a9..d131a02b8c6 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -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 weightdiff --git a/lucene/src/java/org/apache/lucene/document/DateTools.java b/lucene/src/java/org/apache/lucene/document/DateTools.javaindex ddac753b688..0e5199c6247 100644--- a/lucene/src/java/org/apache/lucene/document/DateTools.java+++ b/lucene/src/java/org/apache/lucene/document/DateTools.java@@ -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>() {