fuzzyworld

when-am-i / commit

Default landing page to today's date instead of hardcoded 1700

429842aaf224e5c557e491ce25f6bc319ef66572 · Pavel Safronov · 2026-06-20 22:18:41 -0700 · parents 64fc68ee9601

Default landing page to today's date instead of hardcoded 1700
 src/App.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/App.tsx b/src/App.tsx
index fbbf738..0b79fca 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -38,7 +38,7 @@ const colorFor = calendarColorScale([
 const now = new Date();
 const defaultDate: PickerDate = initial.date
     ? fromHistoricalDate(initial.date)
-    : { year: 1700, month: now.getMonth() + 1, day: now.getDate(), era: 'CE' };
+    : { year: now.getFullYear(), month: now.getMonth() + 1, day: now.getDate(), era: 'CE' };
 
 // Mirror MapPicker's own default zoom so the shareable URL has the right zoom
 // from the first render (before the user touches the map).