Changeset 28878

Show
Ignore:
Timestamp:
06.03.2014 11:38:29 (6 years ago)
Author:
kjdon
Message:

oai code uses dates in milliseconds, so convert the greenstone seconds to milliseconds

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/collection/Collection.java

    r28859 r28878  
    173173    } 
    174174 
    175     // Not used anymore by the OAIReceptionist to find out the earliest datestamp  
    176     // amongst all oai collections in the repository. May be useful generally. 
     175    // Used by OAI Receptionist to determine whether to expire a resumption token - if a token was issued before a collection is rebuilt, then the token must be expired. 
    177176    public long getLastmodified() 
    178177    { 
     
    180179    } 
    181180 
    182     //used by the OAIReceptionist to find out the earliest datestamp amongst all oai collections in the repository 
     181    // used by the OAIReceptionist to find out the earliest datestamp amongst all oai collections in the repository 
    183182    public long getEarliestDatestamp() 
    184183    { 
     
    428427                        if (!earliestDatestampStr.equals("")) 
    429428                        { 
    430                             earliestDatestamp = Long.parseLong(earliestDatestampStr); 
     429                          earliestDatestamp = Long.parseLong(earliestDatestampStr) * 1000; // stored in seconds, convert to milliseconds 
     430                             
    431431                        } 
    432432                        break; // found a metadata element with name=earliestDatestamp in buildconfig