diff --git a/app.js b/app.js
index 738b72f..355f567 100644
--- a/app.js
+++ b/app.js
@@ -368,7 +368,7 @@ function renderEntries() {
const source = sourceLabels[entry.source] || entry.source;
return `
- ${escapeHtml(entry.title)} ${escapeHtml(source)} ${escapeHtml(entry.start_date)} → ${escapeHtml(entry.end_date)}${Number(entry.allow_unpaid) ? ' unpaid' : ''} |
+ ${escapeHtml(entry.title)} ${escapeHtml(source)} ${formatDate(entry.start_date)} → ${formatDate(entry.end_date)}${Number(entry.allow_unpaid) ? ' unpaid' : ''} |
${days(summary.workdays)} |
${days(summary.usedVacation)} |
${days(summary.usedFeriefridage)} |
@@ -427,7 +427,7 @@ function renderMonthRow(month) {
${escapeHtml(item.title)}
${days(item.workdays)} wd · ${days(item.usedVacation)} vd · ${days(item.usedFeriefridage)} ff · ${hours(item.usedFlex)} fl
- ${escapeHtml(item.start_date)} → ${escapeHtml(item.end_date)}
+ ${formatDate(item.start_date)} → ${formatDate(item.end_date)}
`).join('')
: '—';
@@ -866,6 +866,12 @@ function parseDate(value) {
return dateFromParts(year, month, day);
}
+function formatDate(value) {
+ const [year, month, day] = String(value).split('-');
+ if (!year || !month || !day) return escapeHtml(value);
+ return `${day}/${month}/${year}`;
+}
+
function monthKey(year, month) {
return `${year}-${String(month).padStart(2, '0')}`;
}
diff --git a/style.css b/style.css
index b5f2972..3736f71 100644
--- a/style.css
+++ b/style.css
@@ -293,9 +293,9 @@ table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .75rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover { background: rgba(255,255,255,.04); }
-.planner-body-table tr.past-month { opacity: .55; }
+.planner-body-table tr.past-month { opacity: .78; }
.planner-body-table tr.past-month td:first-child { color: var(--muted); }
-.planner-body-table tr.past-month .balance-override-input { opacity: .72; }
+.planner-body-table tr.past-month .balance-override-input { opacity: .9; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.strong-num { font-weight: 900; color: var(--ink); }
.muted { color: var(--muted); }