Adds formatDate/formatDateTime that tolerate both SQLite "YYYY-MM-DD HH:MM:SS" (the shape our Go/Turso layer emits via datetime('now'), which new Date() can't parse → the admin "Invalid Date" bug) and RFC3339, returning '' for falsy/invalid. 12/12 tests pass. Bumps to v0.3.0; admin-site adopts it next (pin → this SHA).
Adds `formatDate`/`formatDateTime` that tolerate both SQLite `"YYYY-MM-DD HH:MM:SS"` (the shape our Go/Turso layer emits via `datetime('now')`, which `new Date()` can't parse → the admin "Invalid Date" bug) and RFC3339, returning `''` for falsy/invalid. 12/12 tests pass. Bumps to v0.3.0; admin-site adopts it next (pin → this SHA).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
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>
bastian
merged commit b7abf51087 into main2026-06-10 16:36:44 -04:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Adds
formatDate/formatDateTimethat tolerate both SQLite"YYYY-MM-DD HH:MM:SS"(the shape our Go/Turso layer emits viadatetime('now'), whichnew Date()can't parse → the admin "Invalid Date" bug) and RFC3339, returning''for falsy/invalid. 12/12 tests pass. Bumps to v0.3.0; admin-site adopts it next (pin → this SHA).🤖 Generated with Claude Code
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>