Skip to content

Commit

Permalink
fixup edtf date
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Jul 23, 2024
1 parent 09d0063 commit db3afb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/handlers/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ func CheckMyWork(w http.ResponseWriter, r *http.Request) {
uploadIds[cell] = true
// check for valid EDTF values
case "Creation Date", "Date Captured", "Embargo Until Date":
_, err := edtf.ParseString(cell)
if err != nil {
if !edtf.IsValid(cell) {
errors[i] = "Invalid EDTF value"
}
// check for valid DOI value
Expand Down

0 comments on commit db3afb2

Please sign in to comment.