From db3afb29e29de6b4c96d8debc5c1f27baf0203f4 Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Tue, 23 Jul 2024 16:30:57 -0400 Subject: [PATCH] fixup edtf date --- internal/handlers/check.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/handlers/check.go b/internal/handlers/check.go index 935f05f..13ac896 100644 --- a/internal/handlers/check.go +++ b/internal/handlers/check.go @@ -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