From bc602c7bd8ce7cb79af5bc11b62cdf331050bda4 Mon Sep 17 00:00:00 2001 From: CentreMetre Date: Sun, 14 Jun 2026 16:29:24 +0100 Subject: [PATCH] Remove specific imports and specific functionality --- abstract-table.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/abstract-table.ts b/abstract-table.ts index 623fa2c..4b54488 100644 --- a/abstract-table.ts +++ b/abstract-table.ts @@ -1,5 +1,3 @@ -import {isIsoDateWithMs, padIsoMilliseconds} from "./util.js"; - /** * @template R A type that the shape of a row should be. E.g. * ``` @@ -139,17 +137,7 @@ export abstract class Table { default: const strValue = String(value) - if (isIsoDateWithMs(strValue)) - { - const strValueDateTime = padIsoMilliseconds(strValue); - cell.classList.add("table-cell-datetime") - const date = strValueDateTime.split("T")[0] - const time = strValueDateTime.split("T")[1] - cellValue = `${date} ${time}`; - } - else { cellValue = value != null ? String(value) : ""; - } } cell.textContent = cellValue; row.append(cell);