diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts
index ae3560247..ae6adbd93 100644
--- a/app/src/protyle/render/av/col.ts
+++ b/app/src/protyle/render/av/col.ts
@@ -187,6 +187,13 @@ export const getEditHTML = (options: {
${window.siyuan.languages.fillSpecificTime}
+`;
+ } else if (["updated", "created"].includes(colData.type)) {
+ html += `
+`;
}
html += `
@@ -365,6 +372,24 @@ export const bindEditEvent = (options: {
});
}
+ const includeTimeElement = options.menuElement.querySelector('.b3-switch[data-type="includeTime"]') as HTMLInputElement;
+ if (includeTimeElement) {
+ includeTimeElement.addEventListener("change", () => {
+ transaction(options.protyle, [{
+ action: "setAttrViewUpdatedIncludeTime",
+ id: colId,
+ avID,
+ data: includeTimeElement.checked,
+ }], [{
+ action: "setAttrViewUpdatedIncludeTime",
+ id: colId,
+ avID,
+ data: !includeTimeElement.checked,
+ }]);
+ colData.includeTime = includeTimeElement.checked;
+ });
+ }
+
const wrapElement = options.menuElement.querySelector('.b3-switch[data-type="wrap"]') as HTMLInputElement;
if (wrapElement) {
wrapElement.addEventListener("change", () => {