mirror of https://github.com/apache/lucene.git
SOLR-1995: Use proper format for SimpleDateFormat
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@964312 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2fbf7ec677
commit
278448babc
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue