We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 933e022 + e5e1d8f commit 69c0f03Copy full SHA for 69c0f03
1 file changed
src/utils/utils.js
@@ -218,8 +218,7 @@ function convertDatesToISO (obj, dateKeys) {
218
219
// Helper function to check if a string is a valid date
220
function isStringDate (value) {
221
- const date = new Date(value)
222
- return !isNaN(date.getTime())
+ return DateTime.fromISO(value).isValid
223
}
224
225
function updateDateValue (objectToUpdate, key, value) {
0 commit comments