feat(前端界面): 优化签名时间显示格式
build.yaml / build (push) Successful in 35s

This commit is contained in:
xiaoqidun committed 2026-09-08 10:49:42 +08:00
1 parent c9ccb77306
commit b0d368e067
1 file changed
+1 -5
+1 -5
View File
@@ -1898,11 +1898,7 @@ function signatureReferenceStatus(signature) {
function formatSignatureTime(value) {
const text = String(value || "").trim();
const digits = text.match(/^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})$/);
if (digits) {
return `${digits[1]}-${digits[2]}-${digits[3]} ${digits[4]}:${digits[5]}:${digits[6]}`;
}
return text.replace("T", " ").replace(/(?:Z|[+-]\d{2}:?\d{2})$/, "");
return text.replace(/^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d+)?(Z|[+-]\d{2}:?\d{2})?$/, "$1-$2-$3 $4:$5:$6$7$8").replace("T", " ");
}
function appendSignatureLine(row, label, value, status = "") {