diff --git a/src/frontend/components/property-type/datetime/edit.tsx b/src/frontend/components/property-type/datetime/edit.tsx index 6d15f48c4..4c80919da 100644 --- a/src/frontend/components/property-type/datetime/edit.tsx +++ b/src/frontend/components/property-type/datetime/edit.tsx @@ -23,7 +23,7 @@ const Edit: React.FC = (props) => { value={value} disabled={property.isDisabled} onChange={(date) => { - onChange(property.path, date?.substring(0, 10) ?? date) + onChange(property.path, property.type === 'date' ? date?.substring(0, 10) ?? date : date) }} propertyType={property.type} {...property.props}