π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: proper dateFormat extraction
Pranav C27c67d713362
diff --git a/packages/nc-gui/components/cell/Date/Editor.vue b/packages/nc-gui/components/cell/Date/Editor.vueindex f20f99b29f..de30c28cf6 100644--- a/packages/nc-gui/components/cell/Date/Editor.vue+++ b/packages/nc-gui/components/cell/Date/Editor.vue@@ -61,7 +61,9 @@ const localState = computed({return undefined}- if (!dayjs(modelValue).isValid()) {+ const format = dateFormat.value++ if (!dayjs(modelValue, format).isValid()) {const parsedDate = parseFlexibleDate(modelValue)if (parsedDate) {return parsedDate@@ -71,8 +73,6 @@ const localState = computed({return undefined}- const format = picker.value === 'month' ? dateFormat : 'YYYY-MM-DD'-const value = dayjs(/^\d+$/.test(modelValue) ? +modelValue : modelValue, format)return value