openhands
b9c6001f08
refactor: centralize duplicated formatDate helper
...
21 files defined their own local formatDate (with three different output
formats: date, datetime, datetime-seconds, and varying null fallbacks).
Replace them with a single shared helper at src/lib/format-date.ts that
takes a variant + optional fallback, preserving the exact previous output
per call site (verified identical string results).
Removes ~21 copies of the same logic. photos.tsx and media-grid.tsx keep
their epoch-ms based formatters since those are a different input shape.
Verified: tsc --noEmit clean, full test suite green (301/301).
2026-07-18 19:17:17 +02:00
..
2026-07-15 20:11:55 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-18 19:08:17 +02:00
2026-07-13 21:57:41 +02:00
2026-07-17 23:09:57 +02:00
2026-07-18 19:08:17 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-17 20:14:55 +02:00
2026-07-18 19:08:17 +02:00
2026-07-18 18:57:14 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-17 18:31:07 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-18 19:17:17 +02:00
2026-07-13 21:57:41 +02:00
2026-07-15 22:09:47 +02:00
2026-07-17 22:28:18 +02:00
2026-07-17 22:30:46 +02:00
2026-07-15 22:45:35 +02:00
2026-07-15 22:45:35 +02:00
2026-07-17 18:52:38 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-17 23:09:57 +02:00
2026-07-18 17:04:48 +02:00
2026-07-16 20:58:18 +02:00
2026-07-13 21:57:41 +02:00
2026-07-15 20:11:55 +02:00
2026-07-15 20:33:00 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-17 22:53:56 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-17 23:09:57 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-15 21:37:25 +02:00
2026-07-15 21:37:25 +02:00
2026-07-16 15:53:53 +02:00
2026-07-13 21:57:41 +02:00
2026-07-16 15:53:53 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00