Skip to content

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

:bug: Database `Created time` field filtering is not working https://github.com/siyuan-note/siyuan/issues/18017

Daniel3548275952b3
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index fab9c213f7..77fa42d1c1 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -278,7 +278,7 @@ export const genCellValue = (colType: TAVCol, value: string | any) => {
checked: true
}
};
- } else if (colType === "date") {
+ } else if (["date", "created", "updated"].includes(colType)) {
let values = value.split("→");
if (values.length !== 2) {
values = value.split("-");
@@ -291,7 +291,7 @@ export const genCellValue = (colType: TAVCol, value: string | any) => {
if (isNaN(dateObj1.valueOf())) {
cellValue = {
type: colType,
- date: {
+ [colType]: {
content: null,
isNotEmpty: false,
content2: null,
@@ -304,7 +304,7 @@ export const genCellValue = (colType: TAVCol, value: string | any) => {
} else {
cellValue = {
type: colType,
- date: {
+ [colType]: {
content: dateObj1.valueOf(),
isNotEmpty: true,
content2: dateObj2.valueOf() || 0,