Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/pull/15772

Vanessa14251d8daeb5
diff --git a/app/src/protyle/render/av/date.ts b/app/src/protyle/render/av/date.ts
index ca6430ca8f..2a887b1145 100644
--- a/app/src/protyle/render/av/date.ts
+++ b/app/src/protyle/render/av/date.ts
@@ -18,9 +18,9 @@ export const getDateHTML = (cellElements: HTMLElement[]) => {
let value2 = "";
if (cellValue.isNotEmpty2) {
value2 = dayjs(cellValue.content2).format(isNotTime ? "YYYY-MM-DD" : "YYYY-MM-DD HH:mm");
- const year2 = value2.split("-")[0];
- if (year2.length !== 4) {
- value2 = new Array(4 - year2.length).fill(0).join("") + value;
+ const year = value2.split("-")[0];
+ if (year.length !== 4) {
+ value2 = new Array(4 - year.length).fill(0).join("") + value2;
}
} else if (cellValue.hasEndDate) {
value2 = dayjs(currentDate).format(isNotTime ? "YYYY-MM-DD" : "YYYY-MM-DD HH:mm");