mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
52a4815419
commit
14251d8dae
1 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue