diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index 9d77ab25f..866a8759e 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -980,7 +980,7 @@ export const renderCell = (cellValue: IAVCellValue, rowIndex = 0, showIcon = tru
const dataValue = cellValue ? cellValue[cellValue.type as "date"] : null;
text = ``;
if (dataValue && dataValue.isNotEmpty) {
- text += dayjs(dataValue.content).format("YYYY-MM-DD HH:mm");
+ text += dataValue.formattedContent;
}
text += "";
} else if (["lineNumber"].includes(cellValue.type)) {
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts
index 4b3197220..9b3d28b66 100644
--- a/app/src/protyle/render/av/col.ts
+++ b/app/src/protyle/render/av/col.ts
@@ -193,7 +193,7 @@ export const getEditHTML = (options: {
`;
}
html += `
@@ -386,7 +386,11 @@ export const bindEditEvent = (options: {
avID,
data: !includeTimeElement.checked,
}]);
- colData[colData.type as "updated"].includeTime = includeTimeElement.checked;
+ if (colData[colData.type as "updated"]) {
+ colData[colData.type as "updated"].includeTime = includeTimeElement.checked;
+ } else {
+ colData[colData.type as "updated"] = {includeTime: includeTimeElement.checked};
+ }
});
}