commit 195872da94b7dedf92db23c033c95203ffd327a3
parent 2f4b142a5dc706091df105ba54e243c99c300247
Author: Julian Piribauer <julian.piribauer@gmail.com>
Date: Sat, 9 May 2026 19:09:00 +0000
Change date format to DD.MM.YYYY throughout
- Input placeholders updated in index.html
- formatDateRange now reads year from the last 4 chars (was first 4)
- All 11 existing birth_dates in the DB migrated from YYYY-MM-DD
(and one YYYY.MM.DD outlier) to DD.MM.YYYY
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/static/app.js b/static/app.js
@@ -1434,8 +1434,9 @@ function esc(s) {
function truncate(s, n) { return s.length > n ? s.slice(0, n - 1) + '…' : s; }
function formatDateRange(birth, death) {
if (!birth && !death) return '';
- const b = birth ? birth.slice(0, 4) : '?';
- return death ? `${b} – ${death.slice(0, 4)}` : b;
+ const year = d => d.slice(-4);
+ const b = birth ? year(birth) : '?';
+ return death ? `${b} – ${year(death)}` : b;
}
/* ── Language change ── */
diff --git a/static/index.html b/static/index.html
@@ -203,11 +203,11 @@
<div class="form-row">
<div class="form-group">
<label class="form-label" data-i18n="form-birth-date">Birth date</label>
- <input class="form-input" id="personBirthDate" type="text" placeholder="YYYY-MM-DD">
+ <input class="form-input" id="personBirthDate" type="text" placeholder="DD.MM.YYYY">
</div>
<div class="form-group">
<label class="form-label" data-i18n="form-death-date">Death date</label>
- <input class="form-input" id="personDeathDate" type="text" placeholder="YYYY-MM-DD">
+ <input class="form-input" id="personDeathDate" type="text" placeholder="DD.MM.YYYY">
</div>
</div>
<div class="form-row">