datetime format

This commit is contained in:
Corban-Lee Jones 2024-06-12 23:59:33 +01:00
parent 7cd1c9bdce
commit 525a038c48

View File

@ -56,7 +56,7 @@ function initContentTable() {
title: "Created",
data: "creation_datetime",
render: function(data, type) {
return new Date(data).toISOString().split("T")[0];
return `<small>${new Date(data).toISOString().replace('T', ' · ').replace(/\.\d+Z$/, '')}</small>`;
}
},
]