Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2582

OAI-PMH returns invalid datestamps (including milliseconds)

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2, 6.0
    • Component/s: OAI-PMH
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Not Required

      Description

      In DSpace 5.1 (possibly also some earlier versions), the OAI-PMH interface returns invalid datestamps (including milliseconds). When OAI-PMH is validated using the OpenArchives.org validator, you'll see errors like these:

      [FAIL] Bad responseDate of 2015-05-19T14:57:04.000Z, this is not in UTC DateTime (YYYY-MM-DDThh:mm:ssZ) format

      This error is because DSpace is returning a date that includes milliseconds, while OAI-PMH expects only whole seconds: http://www.openarchives.org/OAI/openarchivesprotocol.html#DatestampsResponses

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tdonohue Tim Donohue
                Reporter:
                tdonohue Tim Donohue
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: