fix: 校验独立站公开快照并补充自托管说明
This commit is contained in:
@@ -309,7 +309,16 @@ function formatDate(item) {
|
||||
function formatVerified(value) {
|
||||
const raw = String(value || "");
|
||||
if (!raw) return "";
|
||||
return raw.slice(0, 16).replace("T", " ");
|
||||
const parsed = new Date(raw);
|
||||
if (Number.isNaN(parsed.getTime())) return raw.slice(0, 16).replace("T", " ");
|
||||
const parts = new Intl.DateTimeFormat(undefined, {
|
||||
year: "numeric", month: "2-digit", day: "2-digit",
|
||||
hour: "2-digit", minute: "2-digit", hour12: false, hourCycle: "h23",
|
||||
}).formatToParts(parsed).reduce((result, part) => {
|
||||
result[part.type] = part.value;
|
||||
return result;
|
||||
}, {});
|
||||
return `${parts.year}-${parts.month}-${parts.day} ${parts.hour}:${parts.minute}`;
|
||||
}
|
||||
|
||||
function sectionOf(item) {
|
||||
|
||||
Reference in New Issue
Block a user