diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 22800af9882..2cc636a4dfe 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -373,6 +373,9 @@ Bug Fixes * SOLR-1791: Fix messed up core names on admin gui (yonik via koji) +* SOLR-1995: Change date format from "hour in am/pm" to "hour in day" + in CoreContainer and SnapShooter. (Hayato Ito, koji) + Other Changes ---------------------- diff --git a/solr/src/java/org/apache/solr/core/CoreContainer.java b/solr/src/java/org/apache/solr/core/CoreContainer.java index 07f9ba42a17..1ba89b1edb8 100644 --- a/solr/src/java/org/apache/solr/core/CoreContainer.java +++ b/solr/src/java/org/apache/solr/core/CoreContainer.java @@ -436,7 +436,7 @@ public class CoreContainer schemaFile = new File(solrLoader.getInstanceDir() + "conf" + File.separator + dcore.getSchemaName()); } if(schemaFile. exists()){ - String key = schemaFile.getAbsolutePath()+":"+new SimpleDateFormat("yyyyMMddhhmmss", Locale.US).format(new Date(schemaFile.lastModified())); + String key = schemaFile.getAbsolutePath()+":"+new SimpleDateFormat("yyyyMMddHHmmss", Locale.US).format(new Date(schemaFile.lastModified())); schema = indexSchemaCache.get(key); if(schema == null){ log.info("creating new schema object for core: " + dcore.name); diff --git a/solr/src/java/org/apache/solr/handler/SnapShooter.java b/solr/src/java/org/apache/solr/handler/SnapShooter.java index 635501d1725..df99c7cb97d 100644 --- a/solr/src/java/org/apache/solr/handler/SnapShooter.java +++ b/solr/src/java/org/apache/solr/handler/SnapShooter.java @@ -111,7 +111,7 @@ public class SnapShooter { } public static final String SNAP_DIR = "snapDir"; - public static final String DATE_FMT = "yyyyMMddhhmmss"; + public static final String DATE_FMT = "yyyyMMddHHmmss"; private class FileCopier {