duplicates should be draft, fix hour column

This commit is contained in:
2023-07-21 11:34:48 +10:00
parent 133a6ed4ea
commit 0ab20a75ac

View File

@@ -222,7 +222,7 @@ const handleLoad = async () => {
row.start_at = new SMDate(row.start_at, { row.start_at = new SMDate(row.start_at, {
format: "ymd", format: "ymd",
utc: true, utc: true,
}).format("MMM d yyyy, H:mm aa"); }).format("MMM d yyyy, HH:mm aa");
} }
if (row.end_at !== "undefined") { if (row.end_at !== "undefined") {
row.end_at = new SMDate(row.end_at, { row.end_at = new SMDate(row.end_at, {
@@ -296,7 +296,7 @@ const handleDuplicate = async (item: Event): Promise<void> => {
end_at: new SMDate(item.end_at, { end_at: new SMDate(item.end_at, {
format: "dmy", format: "dmy",
}).format("yyyy/MM/dd HH:mm:ss", { utc: true }), }).format("yyyy/MM/dd HH:mm:ss", { utc: true }),
status: item.status, status: "Draft",
publish_at: publish_at:
item.publish_at == "" item.publish_at == ""
? "" ? ""