e405985c342f85153ee49ebc5e457e5ade3b03f9
Our Go/Turso layer emits SQLite datetime('now') as "YYYY-MM-DD HH:MM:SS"
(UTC, no zone), which new Date() can't parse → "Invalid Date" in admin.
formatDate/formatDateTime normalize that shape (space→T + Z) and RFC3339,
returning '' for falsy/invalid. Tests cover both formats + empties.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Description
SwitchEV shared constants, types, and validation schemas
Languages
JavaScript
90.6%
CSS
9.4%