Changeset 28878


Ignore:
Timestamp:
03/06/14 11:38:29 (7 years ago)
Author:
kjdon
Message:

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

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.