Project

General

Profile

« Previous | Next » 

Revision 7846

Added by Jing Tao almost 11 years ago

Use a new date format.

View differences:

metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/event/HazelcastIndexEventLog.java
45 45
    
46 46
    private static final String LASTPROCESSEDDATEFILENAME = "solr-last-proccessed-date";
47 47
    private File lastProcessedDateFile = null;
48
    private SimpleDateFormat format = new SimpleDateFormat();
48
    private SimpleDateFormat format = new SimpleDateFormat("yyMMddHHmmssZ");
49 49
    
50 50
    /**
51 51
     * Constructor
metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/event/IndexEventFileLog.java
51 51
    private File logFile = null;
52 52
    private File lastProcessedDateFile = null;
53 53
    private long index=1;
54
    private SimpleDateFormat format = new SimpleDateFormat();
54
    private SimpleDateFormat format = new SimpleDateFormat("yyMMddHHmmssZ");
55 55
    
56 56
    /**
57 57
     * Constructor. Initialize the log file. The log file locates solr.homeDir. 

Also available in: Unified diff