caltechlibrary / iga

IGA is the InvenioRDM GitHub Archiver, a standalone program as well as a GitHub Action that lets you automatically archive GitHub software releases in an InvenioRDM repository.
https://caltechlibrary.github.io/iga/
Other
8 stars 1 forks source link

Generated copyright year is completely bogus #21

Closed mhucka closed 1 year ago

mhucka commented 1 year ago

I'm getting dates field values that include

      {
        "date": "1970-01-01",
        "type": {
          "id": "copyrighted"
        }
      }

Something is wrong somewhere …

mhucka commented 1 year ago

Found the problem. A codemeta.json file can include a value for copyrightYear and that value can be an integer and not a string. In the functino dates() in metadata.py, the value gets handed to the Python Arrow date parser package as-is. Apparently you get unexpected results when you hand it an integer and not string.

mhucka commented 1 year ago

Fixed in commit 4632840.