Skip to content
SprecherEast
Issue 435

bug: a post published at midnight UTC shows the next day

Back to our plan
Open
bugfrontendpriority: low

Problem

isDayOnly() in src/platform/lib/formatDateTime.ts treats any timestamp ending in T00:00:00.000Z as a day-only date and formats it in UTC. That is right for event dates, which are day-only fields. But a post's publishedAt is a full date and time. If it happens to be exactly midnight UTC (7:00 PM in Madison during daylight time), the post shows the next day's date. Since #432, its <time dateTime> names that day too.

Found in the review of #433.

Expected

The day-only rule comes from the field, not from the value. Event dates are day-only; publishedAt never is.

Acceptance criteria

  • Not done: A publishedAt of 2026-03-04T00:00:00.000Z shows Mar 3 (site time), and its dateTime is the full instant.
  • Not done: Event dates still show their calendar day.
  • Not done: Tests cover both.

Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab