diff --git a/src/utils/utils.js b/src/utils/utils.js index 1d5f2da88..82e022ec7 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -218,8 +218,7 @@ function convertDatesToISO (obj, dateKeys) { // Helper function to check if a string is a valid date function isStringDate (value) { - const date = new Date(value) - return !isNaN(date.getTime()) + return DateTime.fromISO(value).isValid } function updateDateValue (objectToUpdate, key, value) {