An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Clean code
Daniel15a5939a0ced
diff --git a/app/src/protyle/render/av/date.ts b/app/src/protyle/render/av/date.tsindex d1adeee39f..59bd09f688 100644--- a/app/src/protyle/render/av/date.ts+++ b/app/src/protyle/render/av/date.ts@@ -26,7 +26,7 @@ export const getDateHTML = (data: IAVTable, cellElements: HTMLElement[]) => {}const isNotTime = !cellValue || cellValue?.value?.date?.isNotTime;let value = "";- const currentDate = new Date().getTime()+ const currentDate = new Date().getTime();if (cellValue?.value?.date?.isNotEmpty) {value = dayjs(cellValue.value.date.content).format(isNotTime ? "YYYY-MM-DD" : "YYYY-MM-DD HH:mm");} else {@@ -79,8 +79,8 @@ export const bindDateEvent = (options: {inputElements[2].addEventListener("change", () => {if (inputElements[2].checked) {if (!inputElements[1].dataset.value) {- const currentDate = new Date().getTime()- inputElements[1].dataset.value = dayjs(currentDate).format("YYYY-MM-DD HH:mm")+ const currentDate = new Date().getTime();+ inputElements[1].dataset.value = dayjs(currentDate).format("YYYY-MM-DD HH:mm");inputElements[1].value = dayjs(currentDate).format(inputElements[3].checked ? "YYYY-MM-DD HH:mm" : "YYYY-MM-DD");}inputElements[1].classList.remove("fn__none");@@ -114,5 +114,5 @@ export const bindDateEvent = (options: {hasEndDate: inputElements[2].checked,isNotTime: !inputElements[3].checked,}, options.cellElements);- }+ };};