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:
Koji Sekiguchi 2010-07-15 06:32:22 +00:00
parent 2fbf7ec677
commit 278448babc
3 changed files with 5 additions and 2 deletions

View File

@ -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
----------------------

View File

@ -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);

View File

@ -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 {